Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_wp_deletePage

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2059           // Make sure the user can delete pages.
2060           if ( !current_user_can('delete_page', $page_id) )
2061                return(new IXR_Error(401, __('Sorry, you do not have the right to delete this page.')));
2062
2063           // Attempt to delete the page.
2064           $result = wp_delete_post($page_id);
2065           if ( !$result )
2066                return(new IXR_Error(500, __('Failed to delete the page.')));
2067
2068           do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args );
2069
2070           return(true);
2071      }
2072
2073      /**
2074       * Edit page.
2075       *
2076       * @since 2.2.0
2077       *