plugin_path = plugin_dir_path( __FILE__ ); $this->plugin_url = plugin_dir_url( __FILE__ ); $this->l10n = 'wp-settings-framework'; add_action( 'admin_menu', array(&$this, 'admin_menu'), 99 ); // Include and create a new WordPressSettingsFramework require_once( $this->plugin_path .'wp-settings-framework.php' ); $settings_file = ''; $this->pluginTemplate = new WordPressSettingsFramework( $settings_file, $this->namespace, $this->get_settings() ); } function admin_menu() { $page_hook = add_menu_page( __( $this->settingName, $this->l10n ), __( $this->settingName, $this->l10n ), 'update_core', $this->settingName, array(&$this, 'settings_page') ); add_submenu_page( $this->settingName, __( 'Settings', $this->l10n ), __( 'Settings', $this->l10n ), 'update_core', $this->settingName, array(&$this, 'settings_page') ); } function settings_page() { // Your settings page ?>
Put an Adsense ad in your post or page by placing the shortcode tag [adsense_inserter id="%postid%"] on your page or post.