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