Add Custom PHP v.3.0.1

Load your custom PHP code every time a page is loaded.

Joomla! 4.x & 5.x Plugin

  LIVE DEMO    DOWNLOAD

This extension executes the custom php code specified by the administrator, each time a page is loaded.

The custom code is written directly in the administration area of the plugin.

Of course, you can still use the variables and functions of the Joomla framework like the code is written inside the official Joomla files.

Free Download
This extension is free for download.

  • Download Add Custom PHP
  • Demo of Add Custom PHP
  • Documentation of Add Custom PHP
  • Technical Information of Add Custom PHP
  • Change Log of Add Custom PHP

Load your custom PHP code every time a page is loaded.

DownloadAdd Custom PHP

Read More

The buttons below will redirect you to another website displaying demos of the extension.

Demo

Read More

Joomla Installation

  1. Download Add Custom Javascript.
  2. In the Joomla control panel select: System > Extensions in the Install section.
  3. In the Upload Package File section click "Or browse for file" and locate the "add-custom-php-3.0.1.zip" file.
  4. Then click Open to upload the file and complete the installation.

Configuration

To configure Add Custom PHP go to the Joomla control panel and select: System > Manage > Plugins. Locate "System - Add Custom PHP" in the list and click it. You can see the Parameters of the plugin as below:

Joomla Parameters

Parameters

The Add Custom PHP plugin has the following parameters:

  • After Initialise: Enable the PHP code to run on the 'After Initialise' event. This code will run after the framework has loaded and the application initialize method has been called.
  • PHP Code (After Initialise): Fill in your custom PHP code. Do not include <?php and ?>.
  • After Route: Enable the PHP code to run on the 'After Route' event. This code will run after the framework has loaded and initialized and the router has routed the client request
  • PHP Code (After Route): Fill in your custom PHP code. Do not include <?php and ?>.
  • After Dispatch: Enable the PHP code to run on the 'After Dispatch' event. This code will run after the framework has dispatched the application
  • PHP Code (After Dispatch): Fill in your custom PHP code. Do not include <?php and ?>.
  • Before Render: Enable the PHP code to run on the 'Before Render' event. This code will run immediately before the framework has rendered the application (e.g. before the body is ready).
  • PHP Code (Before Render): Fill in your custom PHP code. Do not include <?php and ?>.
  • Before Compile Head: Enable the PHP code to run on the 'Before Compile Head' event. This code will run before the framework creates the Head section of the Document.
  • PHP Code (Before Compile Head): Fill in your custom PHP code. Do not include <?php and ?>.
  • After Render: Enable the PHP code to run on the 'After Render' event. This code will run immediately after the framework has rendered the application (e.g. after the body is ready).
  • PHP Code (After Render): Fill in your custom PHP code. Do not include <?php and ?>.

Uninstall from Joomla

  1. Select: System > Extensions in the "Manage" section.
  2. Locate the line with name "Add Custom PHP" in the list.
  3. Check the line and click "Uninstall".

Full Customization

If you need full customization of your website then you can use all the following free extensions:

  1. Add Custom PHP
  2. Add Custom CSS
  3. Add Custom Javascript
Read More
  • Extension version: 3.0.1
    (This version is not compatible with the previous version 2.0.0 which works only in Joomla 3.)
  • Extension type: Plugin
  • Extension technologies: PHP
  • Compatible Joomla version: 4.x, 5.x.
Read More
  • 3.0.1:
    • Fix to the font color of the code editor.
  • 3.0.0:
    • Compatibility with Joomla 4 and 5.
    • The PHP code is written inside the extension's code editor and not in a separate file.
    • Provides all the Joomla phases (plugin events) to select when the custom code will run.
  • 2.0.0:
    • Compatibility with Joomla 4.
  • 1.1.0:
    • Auto update support.
    • More options.
    • Simpler configuration for the user.
  • 1.0.0:
    • The first release of Add Custom PHP.
Read More