wp_defer_term_counting

Advertisement

Summery Summery

Enable or disable term counting.

Syntax Syntax

wp_defer_term_counting( bool $defer = null )

Parameters Parameters

$defer

(bool) (Optional) Enable if true, disable if false.

Default value: null

Return Return

(bool) Whether term counting is enabled or disabled.

Source Source

File: wp-includes/taxonomy.php

	$wpdb->update( $wpdb->terms, $data, compact( 'term_id' ) );

	if ( empty( $slug ) ) {
		$slug = sanitize_title( $name, $term_id );
		$wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) );
	}

	/**
	 * Fires immediately after the given terms are edited.
	 *
	 * @since 2.9.0
	 *

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.