astra_addon_is_snippet_executable()

Whether stored snippets are executed on the front end.


Description

Only administrators can create or edit these layouts, so stored code is trusted and the check is site-wide rather than per layout. Shared with the editor screen so the notice cannot disagree with what actually runs.


Return

(bool)


Source

File: classes/astra-addon-extended-functionality.php

function astra_addon_is_snippet_executable() {
	return ! defined( 'ASTRA_ADVANCED_HOOKS_DISABLE_PHP' );
}

Changelog

Changelog
Version Description
4.13.8 Introduced.


User Contributed Notes

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