. */ if ( !class_exists('AddCodeToHead' ) ) { /** * Wrapper class to isolate us from the global space in order * to prevent method collision */ class AddCodeToHead { /** * Set up all actions, instantiate other */ function __construct() { add_action( 'admin_menu', array( $this, 'add_admin' ) ); add_action( 'admin_init', array( $this, 'admin_init' ) ); add_action( 'wp_head', array( $this, 'display' ) ); } /** * Add our options to the settings menu */ function add_admin() { add_options_page('Add Code to Head', 'Add Code to Head', 'manage_options', 'acth_plugin', array( $this, 'plugin_options_page' ) ); } /** * Callback for options page - set up page title and instantiate fields */ function plugin_options_page() { ?>
Error in pluginSorry about that! Plugin add-code-to-head reports that it was unable to start.
Please report this error. Meanwhile, here are some things you can try: