On this page
wp_increase_content_media_count( int $amount = 1 ): int
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.
Increases an internal content media count variable.
Parameters
$amountint Optional-
Amount to increase by.
Default:
1
Return
int The latest content media count, after the increase.
Source
File: wp-includes/media.php. View all references
function wp_increase_content_media_count( $amount = 1 ) {
static $content_media_count = 0;
$content_media_count += $amount;
return $content_media_count;
}
Related
Used By
| Used By | Description |
|---|---|
| wp_get_loading_attr_default() wp-includes/media.php | Gets the default value to use for a |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_increase_content_media_count