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?
- How to create new title and its description inside a section in WP Customizer?
- How to disable CSS rule in Twentythirteen style.css?
- Why does my functions.php cause white-screen and media-library issues?
- Prevent WordPress installing plugins and themes via Admin
- How to make a slideshow shortcode based on the WordPress gallery shortcode? [closed]
- how to give a user a role?
- Plugin Handle URL With Custom Theme
- Globally register styles but enqueue them selectively
- How to read individual user’s directory and display content to that specific user?
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- All of my custom posttypes are 404’ing
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Admin Theme customization
- “Request has expired” with “Make your site social” (Gigya) plugin
- Hooking in to replace the Sidebar/Widget areas
- WSOD after upgrading to 3.1
- Display post lists in 2nd paragraph
- How to save generated JWT token to cookies on login?
- Check for security updates
- wp_get_post_terms is difference obj model than the one in rest api response
- how to add a button next to the wordpress view button?
- (FES EDD) New vendor submission page is blank
- There is any way to remove post-format filter? [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- Is there any kind of theme on WordPress to sell my own movies?
- Create custom registration form for WordPress Multisite
- Child Pages Short Code plug-in and hover capabilities?
- Linux Permissions and Ownership for WordPress
- posts comments goes to trash
- WordPress site periodically goes down
- Contributive page where people logged in can write
- Masonry images not working
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Advanced Custom Field DatePicker [closed]
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- Best place for short bio,image and button [closed]
- What are the specifics of WordPress development I need to know? [closed]
- All sites themes functions.php have been changed
- Homemade plugin while using Themify Ultra
- WordPress shows error related to allow_url_fopen
- Why namespaces are rarely used in WordPress plugins?
- What will happen if i deactivate my visual composer plug in? [closed]
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- Theme/Plugin installation through url on button click
- (Big issue) Blog is Getting Down Each day.. what should i do.?
- Custom wordpress Theme and Plugin repository