Try it like this:
if (isset($_REQUEST['tab']) && $_REQUEST['tab']) {
typesetter_save_settings();
}
register_sections();
$current = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'page';
You have to check for a certain field of $_REQUEST
(or $_POST
etc.) before accessing it—or you get warnings.
Related Posts:
- How do I add settings to the Background Options Page?
- esc_url not working within add_settings_field callback
- Settings API enable default settings on theme install?
- get_option() returning empty
- How would you accomplish the following advanced settings page?
- Consequences if using PHP include TEMPLATEPATH?
- not getting API setting saved confirmation message after update on option page
- Setting conditional background image from meta value
- Tabbed theme options query about add_settings_section callback function
- How to register dynamic settings in WordPress Customizer?
- Warning: This page allows direct access to your site settings. You can break things here. Please be cautious!
- WordPress theme options checkbox default checked state
- WordPress theme settings not saving
- Create settings field on button click
- Data not saved WordPress Custom Admin Page
- Let users to add any number of input fields in the theme option page
- Getting failure when using filemtime() with wp_enqueue_style
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How bad is it if I write AJAX functions using wp-load.php?
- How to know if a child theme is being used?
- How to modify an image block in Gutenberg WordPress 5?
- WordPress Settings API error
- How do I show sticky posts on a static front page that also contains content?
- Wrapper class: How to get rid of call_user_func_array() warning?
- Change Genesis Tag from Page Template [closed]
- Why is save_post triggered even when I havent saved the post
- Add custom field automatically to custom page types
- Adding WordPress colorpicker in widget settings
- Similar Posts – NO plugin
- What is wrong with this code I have to make a blockquote shortcode
- Add social icons in a theme through custom admin menu
- file_get_contents Not allowed in Themes?
- Best approach to create sites with Modular Content? [closed]
- front-page.php is not Listing in Static Front Page List
- Warning/Error in Admin Panel while developing theme
- How do I get the next page of posts link?
- display 20 lines only with the_content
- How do I remove twentyten without ruining what I did?
- Custom theme not visible in Appearance
- Use debugging for add action events
- Obtain full v2 REST url?
- Where can I access my custom page template?
- Including Javascript options
- Show warning if plugin is missing
- How to To Filter wp_enqueue_script() Scripts on Some Pages
- Does WordPress theme customisation API support section hierarchy?
- Custom Theme Bootstrap
- Check if tag, category or author on archive.php
- Editing Footer Information
- How does a mobile WordPress theme differ from a simple theme?
- How to provide support for [gallery] shortcode?
- Developing WordPress Theme using CSS framework like Bootstrap
- Add “Delete” button to my Theme
- the_permalink() doesn’t work
- WordPress Theme’s 404 File Getting Called Every Page Load?
- How to first edit in local WordPress editor on page and the add code?
- Getting custom posts by post id from cutomizer text input
- How do i define the location of a git push to WP Engine
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- How to create a custom page(not a template) in a theme
- How to override p2 breathe theme plugin in content template file?
- What’s stopping my HTML from rendering in my template parts?
- Default Permalink Type to Postname
- add_filter to parent theme helper class function from child theme
- How to wrap all titles generated by Gutenberg “Heading” block with tag
- How to Change custom post type Dashicon Color
- In creating a theme, how can i allow a user to change an image outside post/page content?
- What Does “Cannot modify header information?” Mean
- Is there any solution, ide/tool etc., for automatic escaping for WordPress?
- WordPress theme resource won’t load over VPN
- Templates without a loop, best practice?
- How the redirect_to parameter is added to wp_login.php when trying to access wp-admin?
- What $handle does WordPress use for a theme’s implicit style.css?
- Shortcode call not working in WP Template
- Unwanted empty line at the beginning of document
- Why is my container argument not working for wp_nav_menu() [closed]
- How can I get the featured image or the first image for a post/page and display it as a banner?
- help needed for suit designing tool
- How to Split loop in multiple column in archive page
- Auto focus RichText field
- How to create nested array attribute
- Customizer API Multi Sections in single Panel
- How can i Limit My Wp Theme To Only One Site
- add class to all images inside the content
- Creating a theme just to deploy a single page
- Load get_page_templates into select menu
- Weird ‘theme update’ error [duplicate]
- how to make a new page affected by a theme’s index.php layout?
- How to display only some widgets of a sidebar?
- add_action not working in header?
- Custom Infinite-post-scrolling in a custom theme:
- Alternating CSS classes for dynamic content [closed]
- WordPress Loop with Custom Post Type for Bootstrap Accordion [closed]
- Recent posts with comment count in “Sidebar” template [closed]
- HTML to WORDPRESS [closed]
- Isotope overlapping .items because of featured images – HELP! [closed]
- How to set up a development/staging site to make major changes to the theme then update on the live site?
- What is the point of using the front-page.php template? [closed]