Scripts execution from Admin Dashboard
[1.0.0]
- Scripts execution from Admin Dashboard
- Add scripts in your theme
exec_scripts_install
Exec action on plugin installation
function clrz_exec_scripts_install( ) {
// Do something
}
add_action( 'clrz_exec_scripts_install', 'on_clrz_exec_scripts_install', 10, 1 );
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;
}
}