Slide 25
Slide 25 text
Setup the options
$options = wp_parse_args( $options, array(
'url' => 'http://website.com/xmlrpc.php',
'blogid' => 0,
'user' => 'username',
'password' => 'passsword',
'errorlog' => __('Error posting remotely: %s')
) );
extract($options,EXTR_SKIP);
The endpoint URL, blog id, remote user name, password
Then extract the options to local variables ($url, $user, etc.)
Friday, November 2, 12