Start Develop Addon
Want a successful Modern site?
Start with IQRA training; it’s easy and quick to your needs.
Start Develop Addon
Get Started
At its simplest, a IQRA Addon is a PHP file with a IQRA Addons header comment. It’s highly recommended that you create a directory to hold your addon so that all of your addon’s files are neatly organized in one place.
Sample Code
<?php
/**
* Addons Name: Contact Form
* Version: 1.0
* Description: Contact Form Builder for IQRA CMS | Design & Developed by MSSOFTPC
* Demo: https://mssoftpc.com
*/
Security Tips
// Always use Define Before Starting of Code.
if(!defined('ABSPATH')){
die('You can"t access this page');
}
// Always Define Addon Directory
define('dummy_addon', current_addon_include_dir(__DIR__).'/');
To get started creating a new addon, follow the steps below.
- Create a new directory and create new php file with same name as directory.
- Open file and add code Addon Code. Save it.
- Now go to IQRA Installed Directory ./content/addons/ upload here addons
OR you can also Install direct from IQRA CMS Addons Area form zip - After upload active it and Done. Enjoy
Addons File Structure
- Addons File name
- activate.php (used for perform action after active) (optional)
- deactivate.php (used for perform action after deactive) (optional)