Doing Things the WordPress Way
- 1. DOING THINGS THE
WordPress
WAY
By Matt Wiebe
Theme Designer, Plugin Developer
Soma Design – http://somadesign.ca/
Twitter – @mattwiebe
- 10. THE WP WAY
★ Loading JS/CSS
★ HTTP Requests
★ JSON
★ Email
- 11. THE WP WAY
★ Loading JS/CSS
★ HTTP Requests
★ JSON
★ Email
★ Query Arguments
- 25. HTTP REQUESTS
★ Not all PHP environments have
cURL installed
★ The WP_Http class Standardizes the
HTTP requests for WordPress. Handles
cookies, gzip encoding and decoding,
chunk decoding…
- 26. HTTP REQUESTS
★ Not all PHP environments have
cURL installed
★ The WP_Http class Standardizes the
HTTP requests for WordPress. Handles
cookies, gzip encoding and decoding,
chunk decoding…
★ wp_remote_* functions provided
- 33. JSON
★ JSON (JavaScript Object Notation)
is the preferred way to exchange data
★ PHP 5.2 has json_encode() and
json_decode() functions
- 34. JSON
★ JSON (JavaScript Object Notation)
is the preferred way to exchange data
★ PHP 5.2 has json_encode() and
json_decode() functions
★ Many WP users are on earlier
versions of PHP
- 35. JSON
★ JSON (JavaScript Object Notation)
is the preferred way to exchange data
★ PHP 5.2 has json_encode() and
json_decode() functions
★ Many WP users are on earlier
versions of PHP
★ WP has a backwards compatibility
layer for PHP < 5.2 (since 2.9)
- 39. EMAIL
★ Sending email sucks
★ WP's mail sending functionality
makes it suck less
★ Centralizes all email so that it can
be overridden/manipulated by plugins
- 54. THANKS!
By Matt Wiebe
Theme Designer, Plugin Developer
Soma Design – http://somadesign.ca/
Twitter – @mattwiebe