xmlrpc_call_success_wp_deletePage
Action HookDescription
Fires after a page has been successfully deleted via XML-RPC.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Action |
Line Number | 3166 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$page_id
|
ID of the deleted page. |
array
|
$args
|
An array of arguments to delete the page. |
Usage Examples
Basic Usage
<?php
// Hook into xmlrpc_call_success_wp_deletePage
add_action('xmlrpc_call_success_wp_deletePage', 'my_custom_function', 10, 2);
function my_custom_function($page_id, $args) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:3166
- How this hook is used in WordPress core
<?php
3161 * @since 3.4.0
3162 *
3163 * @param int $page_id ID of the deleted page.
3164 * @param array $args An array of arguments to delete the page.
3165 */
3166 do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
3167
3168 return true;
3169 }
3170
3171 /**
PHP Documentation
<?php
/**
* Fires after a page has been successfully deleted via XML-RPC.
*
* @since 3.4.0
*
* @param int $page_id ID of the deleted page.
* @param array $args An array of arguments to delete the page.
*/
Quick Info
- Hook Type: Action
- Parameters: 2
- File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks
Related hooks will be displayed here in future updates.