FAQ - Hook: php_pages_news

FAQ - Hook: php_pages_news

1141


Use this hook to execute PHP code in the index.php and news.php file.

This hook is used in pages and news, the same php code will be executed.

For example:

if (!empty($PAGE_ACTIVE)) { $myplugin = 1; }

if you like to include a file:

APP_PATH.'plugins/yourplugin/file_to_include.php';