wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_increase_content_media_count › WordPress Function

Since5.9.0
Deprecatedn/a
wp_increase_content_media_count ( $amount = 1 )
Access:
  • private
Parameters:
  • (int) $amount Optional. Amount to increase by. Default 1.
    Required: No
    Default: 1
Returns:
  • (int) The latest content media count, after the increase.
Defined at:
Codex:

Increases an internal content media count variable.



Source

function wp_increase_content_media_count( $amount = 1 ) {
	static $content_media_count = 0;

	$content_media_count += $amount;

	return $content_media_count;
}