Completely skipping wp_head
and wp_footer
doesn’t seem like a good idea, many core components and plugins depend on these hooks. Instead, you could create a light header and footer, and load them via an extra argument to get_header()
and get_footer()
. get_header( 'light' )
will load header-light.php
instead of the regular header file. Create one without the visual header of the other pages, but leave the wp_head
action intact.
Related Posts:
- Difference Between Filter and Action Hooks?
- Which hook should be used to add an action containing a redirect?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- How Do I Load My Action Earlier Enough?
- Does WP fire delete_post when trashed posts are automatically deleted?
- What’s the earliest point I can get the queried object ID?
- How do I Make a Theme “plugin-ready”?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Is it possible to create an action hook using do_action() within add_action()?
- How can I hook into existing WordPress Bulk actions?
- Define a function outside a class and call the function using action or filter hook
- Create a plugin to change the action to which a function is hooked
- Modifying values with add_action to be sent to db
- Woocommerce – Hide a Column in Cart Table
- Hook to get image filename when it is uploaded
- Which are the hooks run before/after when a category’s deletion?
- Should action callbacks start with a verb?
- Execute Hook on the footer or header after activating a plugin
- Why is my javascript not invoked in my hooks except wp_head?
- Namespaced action and filter tags
- Where to call wp_enqueue_script in a plugin with custom template?
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- I have 2 plugins using the same wp_login action hook and one is not working
- How dynamic action login_form_{action} is working
- How to get all queries’s results after they have executed?
- Bug: Post needs to be updated twice when adding action for save_post hook
- When does save_post hook fire on post save/update
- Hook add_attachment error
- Call to undefined function is_home() or any conditional tags
- How to find list of all functions bind to a particular hook from my plugin?
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- Action / Hook when a new plugin is added
- apply_filters() and call_user_func() to define and call a function outside a class
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- remove different admin menu for specific users
- add_option_{$option} action hook not being called
- Does WordPress have something like timer hook?
- Template file structure , wordpress hook for altering the template
- How can I set a dynamic value for post_updated_messages based on return value of post_updated?
- Insert plugin html content to a specific spot in the frontpage
- Apply function on all action hooks?
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Ninja Forms: Front-End Forms, Post ID?
- How to use useSelect to retrieve the currently default fontFamily?
- creating custom archive template within plugin for custom post type using archive_template filter
- ‘wp_login’ action hook not working with wp-login.php file
- edit_{$taxonomy} | Hook
- WordPress after content Hook & external template part
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- What filter should I use to insert a button inside on Media>Add New
- Issue plugin commands in admin settings page
- My plugin class doesn’t work! [closed]
- best practice for query string values – get_query_var always empty for my value supplied in query string
- get_current_screen() return null
- add_action not calling back to function
- Modifying meta tags after doing ajax call in plugin
- Is there an event or an other method that tells me the preview is loaded?
- how to add custom functionality after woocommerce place order button
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- Tried in different ways but sidebar not working?
- Modify a function without editing template
- Can Page Templates be Applied to Archive and Post Templates?
- ORDER BY wp_post custom column name in wp_query
- How to use a hook to override an update_post_meta call in a plugin?
- External Authentication, session_tokens not destroyed on logout
- Where to add hooks in a class
- Trying to understand order and frequency of action hooks firing
- How to use output buffering in WordPress hooked functions?
- Create a free scripts and styles template within a plugin
- WordPress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?
- Any hook for pre-plugin-update -either bulk or single plugin update
- conditionally load javascript & CSS for do_action() calls from plugin
- Conditional hook based on the core function that is calling it
- Adding option to Gallery shortcode
- correct way to call javascript into hook function
- How to get all of the activate_plugin action parameters?
- Plugin with action ‘save_post’ needs to press publish twice on order to publish
- Adding rewrite rule dynamically
- How to prevent UNDO on guternberg block editor
- How to hook a custom user function to a wordpress core ajax action?
- do_action and add_action on two different installed plugins won’t work
- How can I turn a custom wordpress page into a product page?
- Do I have to worry about useState causing a re-render?
- Creating a custom Gutenberg block with columns
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- Send push when new post is published in a certain category
- Unable to change footer using wp_footer action hook
- wp_set_object_terms not updating database without a die()
- wp.template() returns tags in Ajax response
- Gutenberg: import dependency or assign from global variable?
- Get Time Taken By Each Action Hook in WordPress
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- My WordPress plugin cannot load my JavaScript file
- javascript datatables in a plugin
- Adding widgets to my plugin page instead of WordPress dashboard
- Execute JavaScript in WordPress Hook
- Adding function to Genesis genesis_header [closed]