Fires after a new attachment has been added via the XML-RPC MovableType API.
$attachment_idint$argsarraywp-includes/class-wp-xmlrpc-server.php:6533wp_xmlrpc_server::mw_newMediaObject() * * @since 3.4.0 * * @param int $attachment_id ID of the new attachment. * @param array $args An array of arguments to add the attachment. */ do_action( 'xmlrpc_call_success_mw_newMediaObject', $attachment_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase $struct = $this->_prepare_media_item( get_post( $attachment_id ) ); // Deprecated values. $struct['id'] = $struct['attachment_id']; $struct['file'] = $struct['title'];Introduced in 3.4.0. 2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$attachment_id added.verified against source$id removed.verified against source