wp_increase_content_media_count()
Increases an internal content media count variable.
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
Int
. The latest content media count, after the increase.
Usage
wp_increase_content_media_count( $amount );
- $amount(int)
- Amount to increase by.
Default: 1
Changelog
Since 5.9.0 | Introduced. |
wp_increase_content_media_count() wp increase content media count code WP 6.8
function wp_increase_content_media_count( $amount = 1 ) { static $content_media_count = 0; $content_media_count += $amount; return $content_media_count; }