Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_call_success_wp_newCategory

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
2624           if ( is_wp_error( $cat_id ) ) {
2625                if ( 'term_exists' == $cat_id->get_error_code() )
2626                     return (int) $cat_id->get_error_data();
2627                else
2628                     return(new IXR_Error(500, __('Sorry, the new category failed.')));
2629           } elseif ( ! $cat_id ) {
2630                return(new IXR_Error(500, __('Sorry, the new category failed.')));
2631           }
2632
2633           do_action( 'xmlrpc_call_success_wp_newCategory', $cat_id, $args );
2634
2635           return $cat_id;
2636      }
2637
2638      /**
2639       * Remove category.
2640       *
2641       * @since 2.5.0
2642       *