base-notice.php (515B)
1 <?php 2 namespace Elementor\Core\Admin\Notices; 3 4 if ( ! defined( 'ABSPATH' ) ) { 5 exit; // Exit if accessed directly. 6 } 7 8 abstract class Base_Notice { 9 /** 10 * Determine if the notice should be printed or not. 11 * 12 * @return boolean 13 */ 14 abstract public function should_print(); 15 16 /** 17 * Returns the config of the notice itself. 18 * based on that config the notice will be printed. 19 * 20 * @see \Elementor\Core\Admin\Admin_Notices::admin_notices 21 * 22 * @return array 23 */ 24 abstract public function get_config(); 25 }