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');

?>

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.