Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: saved_{$taxonomy}

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

This hook occurs 2 times in this file.

Line Code
2669       *  - `saved_category`
2670       *  - `saved_post_tag`
2671       *
2672       * @since 5.5.0
2673       *
2674       * @param int  $term_id Term ID.
2675       * @param int  $tt_id   Term taxonomy ID.
2676       * @param bool $update  Whether this is an existing term being updated.
2677       */
2678      do_action( "saved_{$taxonomy}", $term_id, $tt_id, false );
2679
2680      return array(
2681           'term_id'          => $term_id,
2682           'term_taxonomy_id' => $tt_id,
2683      );
2684 }
2685
2686 /**
2687  * Create Term and Taxonomy Relationships.
 
Line Code
3361       * @param int $term_id Term ID.
3362       * @param int $tt_id   Term taxonomy ID.
3363       */
3364      do_action( "edited_{$taxonomy}", $term_id, $tt_id );
3365
3366      /** This action is documented in wp-includes/taxonomy.php */
3367      do_action( 'saved_term', $term_id, $tt_id, $taxonomy, true );
3368
3369      /** This action is documented in wp-includes/taxonomy.php */
3370      do_action( "saved_{$taxonomy}", $term_id, $tt_id, true );
3371
3372      return array(
3373           'term_id'          => $term_id,
3374           'term_taxonomy_id' => $tt_id,
3375      );
3376 }
3377
3378 /**
3379  * Enable or disable term counting.