wp_increase_content_media_count() – Increases an internal content media count variable.

You appear to be a bot. Output may be restricted

Description

Increases an internal content media count variable.

Usage

$int = wp_increase_content_media_count( $amount );

Parameters

$amount
( int ) optional default: 1 – Optional. Amount to increase by. Default 1.

Returns

int The latest content media count, after the increase.

Source

File name: wordpress/wp-includes/media.php
Lines:

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

  $content_media_count += $amount;

  return $content_media_count;
}
 

 View on GitHub View on Trac