Viewing 1 replies (of 1 total)
  • Thread Starter Mark Wilkinson

    (@wpmarkuk)

    Found the answer myself as it so often happens once you post for help. You can use the of_options filter to add options without the options.php file.

    Example below:

    add_filter( 'of_options', function( $options ) {
    
    	$options[] = array(
    		'name' => 'Input Text Mini',
    		'desc' => 'A mini text input field.',
    		'id' => 'example_text_mini',
    		'std' => 'Default',
    		'class' => 'mini',
    		'type' => 'text'
    	);
    
    	return $options;
    
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Changing the Location of Options.php’ is closed to new replies.