WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2625 | if ( is_wp_error( $cat_id ) ) { |
2626 | if ( 'term_exists' == $cat_id->get_error_code() ) |
2627 | return (int) $cat_id->get_error_data(); |
2628 | else |
2629 | return(new IXR_Error(500, __('Sorry, the new category failed.'))); |
2630 | } elseif ( ! $cat_id ) { |
2631 | return(new IXR_Error(500, __('Sorry, the new category failed.'))); |
2632 | } |
2633 |
|
2634 | do_action( 'xmlrpc_call_success_wp_newCategory', $cat_id, $args ); |
2635 |
|
2636 | return $cat_id; |
2637 | } |
2638 |
|
2639 | /** |
2640 | * Remove category. |
2641 | * |
2642 | * @since 2.5.0 |
2643 | * |