I should add is_user_logged_in() wordpress function. and check if user is not logged in site redirect user to home page with wp_redirect(home_url()) function.
if (isset($query->query_vars['account'])) {
if (!is_user_logged_in()) {
wp_redirect(home_url());
exit();
}
include NABRO_USER_PANEL_VIEWS . 'panel.php';
exit();
}
Related Posts:
- How do I make my wordpress page more friendly for mobile viewers?
- login to wordpress with Get variables instead of Post
- Check javascript file Proper way in functions.php
- Should I use RIPS tool to test my themes and plugins?
- Workflow and best practice for documentation [closed]
- Is there a quick way to inject i18n domain into theme/plugin files?
- Translating plugin inside the theme [closed]
- Why are some of my thumbnails not being generated?
- Include Max mega menu Plugin into theme
- wordpress theme backend admin only
- How to get current post user id
- Different UI in WordPress
- The problem with WordPress Importer
- Classified ad website : which solutions to use? [closed]
- Finding the URL to be used to check if plugin is installed with a theme
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- How to use get_template part in the plugin?
- How do I combine a theme with a plugin
- How to write “alt” tag in image for wordpress code?
- Use different single.php file based on condition
- Theme My Login Shortcode Doesn’t Return Anything
- Include Minit plugin in theme [closed]
- How can I use my custom wordpress theme on two websites? [closed]
- why need theme,if page builder is there in wordpress [closed]
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- display unique post per category
- How do you create a re-useable HTML fragment in wordpress
- Identify current wordpress theme
- Removing the custom_image_header from wp_head
- Janrain/Simple Modal under Redirected Domain
- Elementor Sidebar not loading when PRO elements plugin is active
- How to override any plugin file in the child theme
- How to get a post views count using ‘WordPress popular posts’ plugin
- when i activate my WordPress plugin cannot see customizer options or preview
- Showing different js file for different theme in wordpress customizer api
- WordPress panel is not loading after plugin activated with error: HTTP ERROR 500
- how to add custom css at top above all css file for specific url
- How can I add a custom checkbox / radio button on the admin theme options to display a CSS or other?
- wp_login_form() ignoring login_form action hook
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Disqus plugin outputs script as literal text
- Breadcrumb is not generating the correct post page url
- Site is setup statically – how to make it content managable?
- How to work email subscribe in WordPress?
- Javascript as Jquery Function Call?
- Editing a theme
- How to escape html code?
- How to create an Info Box on WordPress [closed]
- How to make content as required in custom post type?
- Hide wordpress plugins from list
- All shortcodes not working on custom theme
- Is it good practice to remove redundant plugins and themes?
- Declare a function before plugin does on the theme functions.php file
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- How to use load_plugin_textdomain from within a theme
- Autoload via composer in plugin interference
- How to create a word press user with hashedpassword
- WordPress language switcher
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- Showing Co-Authors on post page
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- WordPress login with Phone Number [closed]
- Check if we’re viewing an event
- Menus, but not by theme location
- Events Made Easy Plugin – Duplicate Title Tags
- What is the correct way to update both WP/plugins/themes without breaking the site?
- How to read individual user’s directory and display content to that specific user?
- Is there any hook for theme activation ? or something similar?
- Overriding Parent Theme… will cause plugins failure?
- Shortcode Attributes to Return different $_POST
- Moving FB comments at the end of page
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- WordPress custom post type image in RSS
- What is it and from where it is loaded?
- Load CSS files in header of Bones theme?
- How to handle a WordPress blog with articles in different languages?
- How to add an admin alert for missing plugins
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- WordPress Cache delete on plugin uninstall
- require_once not working in plugin wordpress
- Unknown theme modal source
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- Ajax Call not Working in Plugin
- Changing the pointing of assets from old server to new server
- How can I find related learndash course id from woocommerce product object?
- Product catalogue in WordPress
- What Are the Advantages of Using an mu-plugin
- Things that saved lose when logout
- how to protect wordpress website
- Managing users / external login
- How to resolve these findings from security audit
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- manage_{taxonomy}_custom_column not working
- add_meta_box showing blank screen in my page
- What are Seeds? [closed]
- Any plugin installation and update overwrite current theme