08-01-2016, 01:36 AM
dashnex-plugin-core.php
Quote:function dashnex_plugins_loaded()
{
global $dashnex_loader;
global $dashnex_service_manager;
global $dashnex_admin_services;
global $dashnex_ajax_handlers;
$dashnex_loader = require '\\gamenewin' . '/vendor/autoload.php';
require_once '\\gamenewin' . '/DashNex/Services/ServiceManager.php';
$dashnex_service_manager = new DashNex\Services\ServiceManager();
do_action('dashnex_preload');
$filters = apply_filters('dashnex_register_filters', array());
add_filter($filter, $function);
dashnex_setup_shortcodes($dashnex_service_manager);
do_action('dashnex_loaded');
}
function dashnex_setup_shortcodes($service_manager)
{
$shortcodes = apply_filters('dashnex_register_shortcodes', array());
$service_name = $shortcode;
$handler = 'Handle';
if (is_array($service_descriptor)) {
$service_name = $service_descriptor['service'