Make WordPress Core


Ignore:
Timestamp:
10/29/2014 02:43:33 AM (10 years ago)
Author:
boonebgorges
Message:

Introduce 'pre_delete_term' hook.

Props cmmarslender.
Fixes #30127.

File:
1 edited

Legend:

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

    r30086 r30088  
    24182418    }
    24192419
     2420    /**
     2421     * Fires when deleting a term, before any modifications are made to posts or terms.
     2422     *
     2423     * @since 4.1.0
     2424     *
     2425     * @param int $term Term ID
     2426     * @param string $taxonomy Taxonomy Name
     2427     */
     2428    do_action( 'pre_delete_term', $term, $taxonomy );
     2429
    24202430    // Update children to point to new parent
    24212431    if ( is_taxonomy_hierarchical($taxonomy) ) {
Note: See TracChangeset for help on using the changeset viewer.