WordPress.org

Make WordPress Core

Ticket #14283: new_xmlrpc_new_post_action.diff

File new_xmlrpc_new_post_action.diff, 506 bytes (added by simonwheatley, 8 years ago)

Adds a new action to XMLRPC after a new post has been added

  • Users/simon/Projects/AlastairBaxter/site/wordpress/xmlrpc.php

     
    21962196
    21972197                logIO('O', "Posted ! ID: $post_ID");
    21982198
     2199                // Fire an action now we've finished adding the new post
     2200                do_action( 'xmlrpc_post_new_post' );
     2201
    21992202                return strval($post_ID);
    22002203        }
    22012204