Make WordPress Core

Changeset 54266

Timestamp:
09/20/2022 06:51:49 PM (23 months ago)
Author:
johnbillion
Message:

Taxonomy: Standardise the format used to describe arguments passed to actions and filters inside wp_insert_term() and wp_update_term().

Props SergeyBiryukov, mboynes

Fixes #55441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r53944 r54266  
    23482348     * @param string|WP_Error $term     The term name to add, or a WP_Error object if there's an error.
    23492349     * @param string          $taxonomy Taxonomy slug.
    2350      * @param array|string    $args     Array or query string of arguments for inserting a term.
     2350     * @param array|string    $args     Array or query string of arguments .
    23512351     */
    23522352    $term = apply_filters( 'pre_insert_term', $term, $taxonomy, $args );
     
    25482548     * @param string $term           Term being inserted.
    25492549     * @param string $taxonomy       Taxonomy name.
    2550      * @param array  $args           Term arguments passed to the function.
     2550     * @param array  $args           .
    25512551     * @param int    $tt_id          term_taxonomy_id for the newly created term.
    25522552     */
     
    25792579     * @param int    $tt_id    Term taxonomy ID.
    25802580     * @param string $taxonomy Taxonomy slug.
    2581      * @param array  $args     Term arguments passed to the function.
     2581     * @param array  $args     .
    25822582     */
    25832583    do_action( 'create_term', $term_id, $tt_id, $taxonomy, $args );
     
    25992599     * @param int   $term_id Term ID.
    26002600     * @param int   $tt_id   Term taxonomy ID.
    2601      * @param array $args    Term arguments passed to the function.
     2601     * @param array $args    .
    26022602     */
    26032603    do_action( "create_{$taxonomy}", $term_id, $tt_id, $args );
     
    26112611     * @param int   $term_id Term ID.
    26122612     * @param int   $tt_id   Term taxonomy ID.
    2613      * @param array $args    Term arguments passed to the function.
     2613     * @param array $args    .
    26142614     */
    26152615    $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id, $args );
     
    26292629     * @param int    $tt_id    Term taxonomy ID.
    26302630     * @param string $taxonomy Taxonomy slug.
    2631      * @param array  $args     Term arguments passed to the function.
     2631     * @param array  $args     .
    26322632     */
    26332633    do_action( 'created_term', $term_id, $tt_id, $taxonomy, $args );
     
    26492649     * @param int   $term_id Term ID.
    26502650     * @param int   $tt_id   Term taxonomy ID.
    2651      * @param array $args    Term arguments passed to the function.
     2651     * @param array $args    .
    26522652     */
    26532653    do_action( "created_{$taxonomy}", $term_id, $tt_id, $args );
     
    26662666     * @param string $taxonomy Taxonomy slug.
    26672667     * @param bool   $update   Whether this is an existing term being updated.
    2668      * @param array  $args     Term arguments passed to the function.
     2668     * @param array  $args     .
    26692669     */
    26702670    do_action( 'saved_term', $term_id, $tt_id, $taxonomy, false, $args );
     
    26872687     * @param int   $tt_id   Term taxonomy ID.
    26882688     * @param bool  $update  Whether this is an existing term being updated.
    2689      * @param array $args    Term arguments passed to the function.
     2689     * @param array $args    .
    26902690     */
    26912691    do_action( "saved_{$taxonomy}", $term_id, $tt_id, false, $args );
     
    32193219     * @param string $taxonomy    Taxonomy slug.
    32203220     * @param array  $parsed_args An array of potentially altered update arguments for the given term.
    3221      * @param array  $args        An array of update arguments for the given term.
     3221     * @param array  $args        A.
    32223222     */
    32233223    $parent = (int) apply_filters( 'wp_update_term_parent', $args['parent'], $term_id, $taxonomy, $parsed_args, $args );
Note: See TracChangeset for help on using the changeset viewer.