Support

Account

Home Forums Add-ons Options Page using options page fields in functions.php Reply To: using options page fields in functions.php

  • Hey Elliot. I tried that and it still didn’t work. I pulled my include out of the function just to test and it works.

    
    function m1_core_feature_selection() {
    	$include_albums = get_field('include_albums', 'option');
    	if($include_albums == 1) {
    		include_once('lib/cpt_albums.php');
    	}
    }
    add_action('wp_loaded', 'm1_core_feature_selection');
    

    I also tried ‘init’ versus ‘wp_loaded’ and that didn’t work either