xmlrpc_call_success_mw_newMediaObject WordPress Action Hook
The xmlrpc_call_success_mw_newMediaObject hook is called after a successful call to the XML-RPC newMediaObject method. This hook can be used to perform any necessary actions after a new piece of media has been uploaded to a WordPress site.
do_action( 'xmlrpc_call_success_mw_newMediaObject', int $id , array $args ) #
Fires after a new attachment has been added via the XML-RPC MovableType API.
Parameters
- $id
(int)ID of the new attachment.
- $args
(array)An array of arguments to add the attachment.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |