Skip to content
Snippets Groups Projects
Select Git revision
  • 0a46fcd1efb93043071453fd97f84365ac64cf2b
  • master default protected
  • feat/woo-template
  • organize-tests
  • feat/add-show-rendered-method
  • devel
  • 2.1.0
  • 2.0.0
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0
12 results

some_template.php

Blame
  • Notice.php 6.58 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.
         *