delete_comment_meta

Definition:
function delete_comment_meta($comment_id, $meta_key, $meta_value = '') {}

Remove metadata matching criteria from a comment.
You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.

Parameters

  • int $comment_id: comment ID
  • string $meta_key: Metadata name.
  • mixed $meta_value: Optional. Metadata value.

Return values

returns:False for failure. True for success.

Source code

function delete_comment_meta($comment_id, $meta_key, $meta_value = '') {

	return delete_metadata('comment', $comment_id, $meta_key, $meta_value);

}

794

delete_blog_option

Definition:
function delete_blog_option( $id, $key ) {}

Delete an option for a particular blog.

Parameters

  • int $id: The blog id
  • string $key: The option key

Return values

returns:True on success, false on failure.

Source code

function delete_blog_option( $id, $key ) {

	$id = (int) $id;



	switch_to_blog($id);

	$return = delete_option( $key );

	restore_current_blog();

	if ( $return )

		wp_cache_set( $id . '-' . $key . '-blog_option', '', 'site-options' );

	return $return;

}

792

default_topic_count_text

Definition:
function default_topic_count_text( $count ) {}

Default text for tooltip for tag links

Parameters

  • integer $count: number of posts with that tag

Return values

returns:text for the tooltip of a tag link.

Source code

function default_topic_count_text( $count ) {

	return sprintf( _n('%s topic', '%s topics', $count), number_format_i18n( $count ) );

}

788

default_topic_count_scale

Definition:
function default_topic_count_scale( $count ) {}

Default topic count scaling for tag links

Parameters

  • integer $count: number of posts with that tag

Return values

returns:scaled count

Source code

function default_topic_count_scale( $count ) {

	return round(log10($count + 1) * 100);

}

786