_clear_modified_cache_on_transition_comment_status

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Clear the lastcommentmodified cached value when a comment status is changed.

Syntax Syntax

_clear_modified_cache_on_transition_comment_status( string $new_status, string $old_status )

Description Description

Deletes the lastcommentmodified cache key when a comment enters or leaves ‘approved’ status.

Parameters Parameters

$new_status

(string) (Required) The new comment status.

$old_status

(string) (Required) The old comment status.

Source Source

File: wp-includes/comment.php

		return 'trash';
	} else {
		return false;
	}
}

/**

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

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