Tag Info

New answers tagged

0

You would use a conditional check to determine if the option is selected, before adding your function to the action hook. Example: $options = get_option( 'chec_settings' ); if ( $options['chec_checkbox_field_0'] == '1' ) { add_action ('admin_bar_menu', 'remove_wp_logo', 999 ); }


0

The Problem This turned out to be a common case of needing to use stripslashes();. How did I figure this out? I logged into phpMyAdmin, navigated to the options table, found my option name, and edited it. Here's what I discovered... s:11:"description";s:90:"<span style=\"text-decoration: underline;\">This is supposed to be underlined ...


1

add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function); add_options_page( 'Login', 'Login Page', 'manage_options', 'loop.php?url='.esc_url($login_url).''); You're trying to feed a URL to an option that takes only a slug. $menu_slug (string) (required) The slug name to refer to this menu by (should be unique ...


0

I've updated Michaels solution so that it can be used as a tab within a single page. Bt calling main_function() you will output the tabs which will link and output the files outlined in the $my_plugin_tabs section. For instance by clicking on Settings you will have the tab load settings.php and have the tabs showing. I thought it might help to have this ...



Top 50 recent answers are included