Hook: php_pages_news

1023

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';