acf()
The main function responsible for returning the one true acf Instance to functions everywhere. Use this function like you would a global variable, except without needing to declare the global.
Example: <?php $acf = acf(); ?>
Хуков нет.
Возвращает
ACF
.
Использование
acf();
Список изменений
С версии 4.3.0 | Введена. |
Код acf() acf ACF 6.0.4
function acf() { global $acf; // Instantiate only once. if ( ! isset( $acf ) ) { $acf = new ACF(); $acf->initialize(); } return $acf; }