eventon php code
<?php
if( function_exists('add_eventon')) {
$args = array(
'shortcode_variable_name'=> 'shortcode_variable_value',
);
add_eventon($args);
}
?>
eventon php code
<?php
if( function_exists('add_eventon')) {
$args = array(
'shortcode_variable_name'=> 'shortcode_variable_value',
);
add_eventon($args);
}
?>
php event listener
/*
Example 1:
event::bind('blog.post.create', function($args = array())
{
mail('[email protected]', 'Blog Post Published', $args['name'] . ' has been published');
});
Example 2:
event::trigger('blog.post.create', $postInfo);
*/
class event
{
public static $events = array();
public static function trigger($event, $args = array())
{
if(isset(self::$events[$event]))
{
foreach(self::$events[$event] as $func)
{
call_user_func($func, $args);
}
}
}
public static function bind($event, Closure $func)
{
self::$events[$event][] = $func;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us