Skip to content
Snippets Groups Projects
Select Git revision
  • 609fe044506d756a394594e8d6079c2be62a7192
  • master default protected
  • bugfix/wordpress-review
  • initialize-tracker
  • 1.3.0
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.2.0-beta.1
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
16 results

CHANGELOG.md

Blame
  • To find the state of this project's repository at the time of any of these versions, check out the tags.
    Notice.php 6.03 KiB
    <?php
    
    namespace WPDesk\Notice;
    
    /**
     * Class Notice
     *
     * WordPress admin notice.
     * @package WPDesk\Notice
     */
    class Notice
    {
    
        const NOTICE_TYPE_ERROR = 'error';
        const NOTICE_TYPE_WARNING = 'warning';
        const NOTICE_TYPE_SUCCESS = 'success';
        const NOTICE_TYPE_INFO = 'info';
    
        const ADMIN_FOOTER_BASE_PRIORITY = 9999999;
    
        /**
         * Notice type.
         *
         * @var string
         */
        protected $noticeType;
    
        /**
         * Notice content.
         *
         * @var string
         */
        protected $noticeContent;
    
        /**
         * Is dismissible.
         *
         * @var bool
         */
        protected $dismissible;
    
        /**
         * Notice hook priority.
         * @var int;
         */
        protected $priority;
    
        /**
         * Is action added?
         * @var bool
         */
        private $actionAdded = false;
    
        /**
         * Attributes.
         *
         * @var string[]
         */
        protected $attributes = array();
    
        /**
         * Show notice in gutenberg editor.
         *
         * @var bool
         */
        protected $showInGutenberg = false;
    
        /**
         * WPDesk_Flexible_Shipping_Notice constructor.
         *