Upload to a remote server using wp_remote_post

Something like this, perhaps. $args[‘body’] = array(‘post_file’=>’@/path/FILE.EXT’); wp_remote_post($url, $args); The $args array contains the parameters for the post. The body parameter controls what is posted. There’s many other possible parameters as well. See http://codex.wordpress.org/HTTP_API#Other_Arguments Note that the @file method may be specific to curl, and might not work with the other possible HTTP transports that … Read more

Comments do not respect display_name setting, how to make plugin to overcome this

This code does the job with a filter. Doesn’t care what the comment says the author’s name is. Nothing particularly tricky about it. Should be self-explanatory. add_filter(‘get_comment_author’, ‘wpse31694_comment_author_display_name’); function wpse31694_comment_author_display_name($author) { global $comment; if (!empty($comment->user_id)){ $user=get_userdata($comment->user_id); $author=$user->display_name; } return $author; }

Widget translation on my plugin

Based on your comment: The html generated by the widget? That one just shows the Strings in the _e function for eg: _e(“Category”) displays “Category” I suspect that you’ve not configured your translation strings properly. You need to include the textdomain in every translation string function call, or else the strings will never get translated. … Read more

WordPress mode for emacs?

WordPress coding standards are loosely based on the Pear Coding Standards The Drupal open source project also follows similar standards and has published a guide to configuring various editors and IDEs which includes code for a Emacs Drupal mode which can be modified slightly for WordPress.

Communicate between plugins

your question depends a lot on what you want to do .. But in general , when a plugin is loaded or executed, the functions are being “registered” in PHP server and are available for all to use (depending of course HOW you write them) … So for example, to detect if a plugin is … Read more