PHP code example of eliasis-framework / wordpress-plugin
1. Go to this page and download the library: Download eliasis-framework/wordpress-plugin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eliasis-framework / wordpress-plugin example snippets
$DS = DIRECTORY_SEPARATOR;
:run(dirname(__DIR__), 'wordpress-plugin', 'unique_id');
/**
* The unique id is used to run Eliasis on several
* WordPress plugins without any conflict between them.
*
* Let's tell the App class the plugin that is in use using:
* App::unique_id('namespace')
*
* For example:
*/
# Plugin one
App::run(dirname(__DIR__), 'wordpress-plugin', 'pluginOneId');
function getPublicPath() {
App::pluginOneId('path', 'public');
}
# Plugin two
App::run(dirname(__DIR__), 'wordpress-plugin', 'pluginTwoId');
function getPublicPath() {
App::pluginTwoId('path', 'public');
}