xmlrpc_call_success_mw_newMediaObject

xmlrpc_call_success_mw_newMediaObject

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('xmlrpc_call_success_mw_newMediaObject') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 6469
    		 *
    		 * @param int   $id   ID of the new attachment.
    		 * @param array $args An array of arguments to add the attachment.
    		 */
    		do_action( 'xmlrpc_call_success_mw_newMediaObject', $id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
    
    		$struct = $this->_prepare_media_item( get_post( $id ) );
    
    		// Deprecated values.
    		$struct['id']   = $struct['attachment_id'];
    		$struct['file'] = $struct['title'];