xmlrpc_call_success_blogger_deletePost
Action HookDescription
Fires after a post has been successfully deleted via the XML-RPC Blogger API.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Action |
Line Number | 5324 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$post_id
|
ID of the deleted post. |
array
|
$args
|
An array of arguments to delete the post. |
Usage Examples
Basic Usage
<?php
// Hook into xmlrpc_call_success_blogger_deletePost
add_action('xmlrpc_call_success_blogger_deletePost', 'my_custom_function', 10, 2);
function my_custom_function($post_id, $args) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:5324
- How this hook is used in WordPress core
<?php
5319 * @since 3.4.0
5320 *
5321 * @param int $post_id ID of the deleted post.
5322 * @param array $args An array of arguments to delete the post.
5323 */
5324 do_action( 'xmlrpc_call_success_blogger_deletePost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
5325
5326 return true;
5327 }
5328
5329 /*
PHP Documentation
<?php
/**
* Fires after a post has been successfully deleted via the XML-RPC Blogger API.
*
* @since 3.4.0
*
* @param int $post_id ID of the deleted post.
* @param array $args An array of arguments to delete the post.
*/
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.