This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Specify Hooks/Filters | |
//register_activation_hook( __FILE__, 'add_defaults_fn' ); // adds nothing to the DB using this | |
add_action( 'admin_init', 'add_defaults_fn' ); // works in place of the above line - temporary fix | |
add_action( 'admin_init', 'sampleoptions_init_fn' ); | |
add_action( 'admin_menu', 'sampleoptions_add_page_fn' ); | |
// Define the plugin prefix for easy changing throughout this file | |
define( 'PLUGIN_PREFIX', 'plugin_' ); // for prefixes with underscores | |
define( 'PLUGIN_PREFIX_DASH', 'plugin-' ); // for prefixes with dashes | |
// Define the plugin title - for samereasons as above |