This is only used in template-loader.php
, to determine whether it should load a theme file or not. The normal “boot sequence” of WordPress (started in wp-blog-header.php
) loads the plugins, parses the URL, executes a post query based on the URL, and calls the theme. This main post query is typically used in “The Loop”. So if you want all the advantages of URL parsing but not display it using the site theme, you can set WP_USE_THEMES
to false
and it will not execute that final step.
Related Posts:
- Theme Activate Hook
- Can I create my own “Recent Posts” widget or customize the existing one?
- Customize WordPress>Error Page
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Theme file for all pages that are a child of a specific page
- Different ways to display title
- Strategy to get post meta for use outside the loop
- Authentication / login mechanism (non wp-admin)
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- Suggestions for creative use of post format feature, or themes that use them well
- How to add a section to the menus configuration, offering hard coded items?
- Add a #hash to the links in my custom menu
- How can I remove specific custom post meta from the “Custom Fields” fieldset?
- Am I using get_posts wrong?
- Featured Image Size
- Writing Clean WooCommerce Styles
- Wrong path for theme assets
- one time popup after theme activation
- Create a theme by combining a parent and a child theme
- Custom header images won’t appear when set to random
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- retrofiting old blog
- how do you create an admin interface in plugin for your theme
- Override parent theme’s include file from child theme
- WordPress add options to theme not displaying
- What is the right way to set up a one-page portfolio theme? [closed]
- Is it possible to edit the styling of the admin panel from within a custom theme?
- When trying to override plugin’s function by theme, my filter executes two times, I want it to run only a single time
- Highest number of WordPress Custom Page Templates?
- Difficulty loading jQuery with wp_enqueue_script
- Can’t login unless twentyfifteen theme is active
- the_excerpt(); tag not working
- Unable to check if image uploaded by wp_image_editor exists using file_exists function
- Storing the contents from txt file into The_Contents”
- How do you replace content generated by custom fields with custom blocks in Block Editor?
- How to add styles set by user in the customizer
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Issue with loading mobile specific custom single page layout in mobile
- Add attachment for all images in post
- [&hellip appearing instead of […]
- Is it possible to include an HTML flat-file website inside a WordPress theme?
- Static home page with “Blog” inside?
- Replace single_template filter with what for default posts?
- How to have content scroll over background
- Need help with adding templates (archives and sitemap) to WordPress child theme
- save_post action doesn’t passing post id to my function as argument
- How can I change the theme of different posts using a plugin?
- Include jQuery (or anything) inside Custom Options Panel’s tag
- Exclude custom post type from search conflict with get_posts
- How to obfuscate theme directory URLs
- Remove specific published page when theme deactivated
- Is there a WordPress boolean for “theme_customizer_active()”?
- Is there Photo Categories?
- Post and page content not displaying in search results
- WordPress does not load page template or anything else, just empty page with header and footer
- add shortcode support in customizer
- How to make my themes compatible with different WordPress versions?
- Templates dropdown not appearing using _s theme (underscores)
- get_header action not working
- Navbar- disable “onClick” drop-down
- Exclude subcategory from wp_query
- Some doubts about WordPress handle the horizontal main menu visualization
- How To Display Value from Theme Options Field in Front End Template?
- Changing footer depending on URL (poli language site)
- Update Specific Key Value in Complex `wp_options` object
- Using Foundation 5 off-canvas-menu with WordPress
- Custom search template is showing 404 when adding query string
- How do I restructure the comment HTML layout?
- How to set a custom URL for the iframe in the customize page
- Cart displayed above header
- Post Featured Image Custom Sizing?
- Theme: dropdown hover menu not showing up in IE/Edge
- How to Show Next, Previous, and Page Numbers with wp_link_pages
- how to ensure responsiveness in wp themes? [closed]
- PHP Script on a template page & dealing with URI’s
- home is not working in wordpreess
- Let user publish posts on community page
- Responsive Images with art direction
- Correct form of escaping and localization – functions.php breadcrumbs
- How to perform str_replace on the results of wp_list_pages
- Activating theme in local MAMP installation results in HTTP ERROR 500
- Where to find this broken link in order to remove it
- How would I get this to work – send to post from thick box
- Safe way to echo wp_trim_words
- background_image support multiple image size?
- Show category and description
- How can I demonstrate themes well?
- Support Multiple featured images
- WordPress custom jquery not found
- How to using custom DB tables
- Programatically add a page in WordPress
- How to highlight current menu bar base on the URL?
- Replacing static code in a template file with a sidebar and widgets?
- How to remove proudly created by WordPress in theme?
- How to load custom php file in WordPress themes
- Roll my own theme or customize an existing one [closed]
- My wordpress site memory exhausted more than 1GB trying to debug with default
- Display first post on each page differently than the others
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- Image and font support missing in editor when deploying theme remotely