acf/init

Overview

This action is fired after ACF is finished loading and is similar to the WordPress init action.

Changelog

  • Since version 5.2.7

Usage

functions.php

<?php

function my_acf_init() {
    
    // get acf version
    $version = acf_get_setting('version');
    
    
    // do something
    
}

add_action('acf/init', 'my_acf_init');

?>

Hi all. Server maintenance scheduled this Sunday 28th May. Learn more