• Resolved smeedijzeronline

    (@smeedijzeronline)


    Hi,

    I try to activate the module: Single Meta by adding the code below to my theme functions. But the 'acfe/modules/single_meta' in the ACFE settings page keeps showing false.

    add_action('acf/init', 'my_acfe_modules');
    function my_acfe_modules(){
    
        // Enable Single Meta Save
        acfe_update_setting('modules/single_meta', true);
    
       // tried this too: acfe_update_setting('acfe/modules/single_meta', true);
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! Well, it’s weird. Can you please make sure that this code is in the functions.php file of the active theme?

    Also please note that this code has to remain in the file, you should not remove it (unless you want to disable the Single Meta Save).

    Let know when you check it.

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Any news?

    Regards.

    Thread Starter smeedijzeronline

    (@smeedijzeronline)

    Hi,

    Sorry, yes I put the code in functions.php (and leave it there).

    When check $name and $value with var_dump() in advanced-custom-fields-pro/acf.php I get:

    [..]/plugins/advanced-custom-fields-pro/acf.php:527:string 'acfe/modules/single_meta' (length=24)
    [..]/plugins/advanced-custom-fields-pro/acf.php:528:boolean true

    Somehow it shows false on the ACFE settings page and it’s not working.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I just tested again on a blank WP Install + Blank Theme + ACF Pro + ACF Extended and everything works fine. Maybe you have a custom code somewhere which disable the module?

    I would recommend to test it on a blank WP Install and make sure WordPress, ACF Pro & ACF Extended are all up-to-date.

    For reference here is the code to enable the module:

    add_action('acf/init', 'my_acfe_modules');
    function my_acfe_modules(){
        
        acf_update_setting('acfe/modules/single_meta', true);
        
        // OR: 
        //acfe_update_setting('modules/single_meta', true);
        
    }
    

    Regards.

    Thread Starter smeedijzeronline

    (@smeedijzeronline)

    Hi,

    I tried it on a blank WP install and works. So it’s indeed something in my theme that’s preventing the module from activating.

    Thanks for helping!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t activate module: Single Meta’ is closed to new replies.