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 |
---|---|
64 | * |
65 | * The dynamic portion of the hook name, `$taxonomy`, refers to |
66 | * the taxonomy slug. |
67 | * |
68 | * @since 3.0.0 |
69 | * |
70 | * @param object $tag Current taxonomy term object. |
71 | * @param string $taxonomy Current $taxonomy slug. |
72 | */ |
73 | do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> |
74 |
|
75 | <div class="wrap"> |
76 | <h1><?php echo $tax->labels->edit_item; ?></h1> |
77 |
|
78 | <?php if ( $message ) : ?> |
79 | <div id="message" class="updated"> |
80 | <p><strong><?php echo $message; ?></strong></p> |
81 | <?php if ( $wp_http_referer ) { ?> |
82 | <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php printf( __( '← Back to %s' ), $tax->labels->name ); ?></a></p> |