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
2388           // Make sure the user can delete pages.
2389           if ( !current_user_can('delete_page', $page_id) )
2390                return(new IXR_Error(401, __('Sorry, you do not have the right to delete this page.')));
2391
2392           // Attempt to delete the page.
2393           $result = wp_delete_post($page_id);
2394           if ( !$result )
2395                return(new IXR_Error(500, __('Failed to delete the page.')));
2396
2397           do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args );
2398
2399           return(true);
2400      }
2401
2402      /**
2403       * Edit page.
2404       *
2405       * @since 2.2.0
2406       *