diff --git a/src/Reminder.php b/src/Reminder.php
index 8bd046a7775bf71afde3dd355de733a6934b9cad..a3eda414049572378a4365180cdd0fb8dd0f553f 100644
--- a/src/Reminder.php
+++ b/src/Reminder.php
@@ -7,8 +7,10 @@ class Reminder {
 	private $logo_url = 'logo-url';
 
 	public function __construct() {
-		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_reminder_script' ) );
-		add_action( 'admin_footer', array( $this, 'display_html_element' ) );
+		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() {