wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_increase_content_media_count › WordPress Function

Od5.9.0
Przestarzałyn/a
wp_increase_content_media_count ( $amount = 1 )
Dostęp:
  • private
Parametry:
  • (int) $amount Optional. Amount to increase by. Default 1.
    Wymagane: Nie
    Domyślny: 1
Powrót:
  • (int) The latest content media count, after the increase.
Zdefiniowane na:
Codex:

Increases an internal content media count variable.



Źródło

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

	$content_media_count += $amount;

	return $content_media_count;
}