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.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More