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