diff --git a/cognito-forms.php b/cognito-forms.php index 7a04bda..2f28801 100644 --- a/cognito-forms.php +++ b/cognito-forms.php @@ -43,7 +43,6 @@ if ( !class_exists( 'CognitoFormsPlugin' ) ) { // Initialization actions private static $actions = array( 'admin_init', - 'admin_menu', 'init', 'wp_ajax_cognito_tinymce_dialog' ); @@ -188,14 +187,6 @@ if ( !class_exists( 'CognitoFormsPlugin' ) ) { wp_die(); } - // Initialize administration menu (left sidebar) - public function admin_menu() { - add_menu_page( 'Cognito Forms', 'Cognito Forms', 'manage_options', 'Cognito', array( $this, 'main_page' ), "data:image/svg+xml;base64," . base64_encode( file_get_contents( plugin_dir_path( __FILE__ ) . 'cogicon.svg' ) ) ); - add_submenu_page( 'Cognito', 'Cognito Forms', 'View Forms', 'manage_options', 'Cognito', array( $this, 'main_page' ) ); - add_submenu_page( 'Cognito', 'Create Form', 'New Form', 'manage_options', 'CognitoCreateForm', array( $this, 'main_page' ) ); - add_submenu_page( 'Cognito', 'Templates', 'Templates', 'manage_options', 'CognitoTemplates', array( $this, 'main_page' ) ); - } - // Called when a 'CognitoForms' shortcode is encountered, renders form embed script public function render_cognito_shortcode( $atts, $content = null, $code = '' ) { // Default to key setting, unless overridden in shortcode (allows for modules from multiple orgs) @@ -205,11 +196,6 @@ if ( !class_exists( 'CognitoFormsPlugin' ) ) { return CognitoAPI::get_form_embed_script( $key, $atts['id'] ); } - // Entrypoint for Cognito Forms access - public function main_page() { - include 'templates/main.php'; - } - // Add support for oEmbed using the generic Gutenberg Embed block public function oembed_init() { wp_oembed_add_provider( '#https?://(www\.)?cognitoforms\.com/.*#i', 'https://www.cognitoforms.com/f/oembed/', true ); diff --git a/templates/main.php b/templates/main.php deleted file mode 100755 index ed638c6..0000000 --- a/templates/main.php +++ /dev/null @@ -1,53 +0,0 @@ - - - - -