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' );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 4.13.8 | Introduced. |