undefinedfr / exec-scripts

Scripts execution from Admin Dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exec Scripts

Description

Scripts execution from Admin Dashboard

Features

[1.0.0]

  • Scripts execution from Admin Dashboard
  • Add scripts in your theme

Actions

exec_scripts_install

Definition:

Exec action on plugin installation

Example:
function clrz_exec_scripts_install(  ) {
    // Do something
}
add_action( 'clrz_exec_scripts_install', 'on_clrz_exec_scripts_install', 10, 1 );

Add scripts in your theme

Create file ajaxThemeController.php in your-theme/exec-scripts/src/ with following code :

<?php
/**
 * Class ajaxThemeController
 */
class ajaxThemeController {

    //########################//
    //##      ACTIONS       ##//
    //########################//

    public function [NAME_OF_YOUR_ACTION]Action(){
        // your code

        die;
    }
}

About

Scripts execution from Admin Dashboard


Languages

Language:PHP 66.3%Language:JavaScript 29.0%Language:CSS 4.8%