Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in phar:///Users/jonathanstegall/Sites/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Template.php on line 527 condition = $condition; $this->message = $message; $this->dismissible = $dismissible; $this->type = $type; $this->template = $template; add_action( 'admin_notices', array( $this, 'render' ) ); } /** * Render an admin notice * */ public function render() { // class for the notice to use $class = ''; if ( '' !== $this->type ) { $class = ' notice-' . $this->type; } $dismissible = ''; if ( true === $this->dismissible ) { $dismissible = ' is-dismissible'; } // template for notice has a default if ( '' === $this->template ) { $template = plugin_dir_path( __FILE__ ) . '/../templates/admin/notice.php'; } else { $template = $this->template; } $condition = $this->condition; $message = $this->message; require_once( $template ); } }