xmlrpc_call_success_mw_newMediaObject action-hook . WP 3.4.0
Fires after a new attachment has been added via the XML-RPC MovableType API.
Usage
add_action( 'xmlrpc_call_success_mw_newMediaObject', 'action_function_name_8101', 10, 2 ); function action_function_name_8101( $id, $args ){ // action... }
- $id(int)
- ID of the new attachment.
- $args(array)
- An array of arguments to add the attachment.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-xmlrpc-server.php 6404
do_action( 'xmlrpc_call_success_mw_newMediaObject', $id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase