Skip to content

Latest commit

 

History

History
executable file
·
20 lines (15 loc) · 542 Bytes

ActionsEvents.md

File metadata and controls

executable file
·
20 lines (15 loc) · 542 Bytes

Actions and Events

EVENT::enlighter_init

Description: Triggered after Plugin initialization (v3 ONLY)

Example - fetch a list of active themes

$themes = array();
function do_after_ejs_init(){
    $themes = Enlighter::getAvailableThemes();
}

// the Theme-List become available after the plugin is initialized!
// prior calls will throw an internal error
add_action('enlighter_init', 'do_after_ejs_init');