Astra_Ext_Advanced_Hooks_Markup::advanced_hook_template_frontend()

Don’t display the elementor header footer templates on the frontend for non edit_posts capable users.


Description


Source

File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php

		public function advanced_hook_template_frontend() {
			if ( is_singular( ASTRA_ADVANCED_HOOKS_POST_TYPE ) && ! current_user_can( 'edit_posts' ) ) {
				wp_safe_redirect( site_url(), 301 );
				die;
			}
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.