Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ianvanwijk

    (@ianvanwijk)

    I forgot to add…

    In functions.php:
    require get_template_directory() . '/inc/custom-global-variables.php';

    in custom-global-variables.php:

    <?php
    /**
     * Custom Global Variables
     * custom-global-variables.php
     *
     * @package _kw
     */
    
    function _kw_custom_global_variables_setup() {
    	
    	$custom_global_variables = new Custom_Global_Variables(true);
    
    	$custom_global_variables->save_vars(
    		array(
    			'phone_number' => '1234567890',
    			'email_address' => '[email protected]'
    		),
    		false
    	);
    
    }
    add_action( 'after_setup_theme', '_kw_custom_global_variables_setup' );
    • This reply was modified 6 years, 10 months ago by ianvanwijk.
Viewing 1 replies (of 1 total)