bp_before_insert_term, $term, $taxonomy, $args

bp_before_insert_term, $term, $taxonomy, $args

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: buddypress.14.5.2

do_action('bp_before_insert_term, $term, $taxonomy, $args') is found 1 times:

  • /bp-core/bp-core-taxonomy.php line 351
    	 * @param string $term     The BP term name to add.
    	 * @param string $taxonomy The BP taxonomy to which to add the term.
    	 * @param array  $args     Array of arguments for inserting a BP term.
    	 */
    	do_action( 'bp_before_insert_term', $term, $taxonomy, $args );
    
    	$tt_id = wp_insert_term( $term, $taxonomy, $args );
    
    	if ( is_wp_error( $tt_id ) ) {
    		return $tt_id;
    	}