Skip to content
Snippets Groups Projects
Commit 6c9cae0e authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(function not exists): add actions when add_action function exists

parent 6db5c550
Branches
Tags 1.0.1 1.0.1-beta4
3 merge requests!6Feature/no dev,!5Feature/no dev,!3feature(popup): popup
Pipeline #11200 passed with warnings
......@@ -7,9 +7,11 @@ class Reminder {
private $logo_url = 'logo-url';
public function __construct() {
if ( function_exists( 'add_action' ) ) {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
add_action( 'admin_footer', array( $this, 'display_html_element' ) );
}
}
public function enqueue_reminder_script() {
if ( ! $this->is_plugin_activated() ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment