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