| @@ -24,12 +24,9 @@ | ||
| 24 | 24 | */ |
| 25 | 25 | private $notices = []; |
| 26 | 26 | |
| 27 | 27 | public function __construct() { |
| 28 | - /** | |
| 29 | - * @since 2.2.8 Filter Name Changed | |
| 30 | - */ | |
| 31 | - add_filter( 'wbcr/factory/admin_notices', [ $this, 'register_notices' ], 10, 2 ); | |
| 28 | + add_filter( 'wbcr_factory_notices_000_list', [ $this, 'register_notices' ], 10, 2 ); | |
| 32 | 29 | } |
| 33 | 30 | |
| 34 | 31 | /** |
| 35 | 32 | * @author Alexander Kovalev <alex.kovalevv@gmail.com> |
| @@ -58,13 +55,13 @@ | ||
| 58 | 55 | 'post', |
| 59 | 56 | 'post-new', |
| 60 | 57 | 'edit' |
| 61 | 58 | ] ); |
| 62 | - /*$this->add_notice( 'leave_feedback', $this->get_leave_feedback_notice(), 'success', true, time() + 3600 * 60, [ | |
| 59 | + $this->add_notice( 'leave_feedback', $this->get_leave_feedback_notice(), 'success', true, time() + 3600 * 60, [ | |
| 63 | 60 | 'post', |
| 64 | 61 | 'post-new', |
| 65 | 62 | 'edit' |
| 66 | - ] );*/ | |
| 63 | + ] ); | |
| 67 | 64 | |
| 68 | 65 | return array_merge( $notices, $this->notices ); |
| 69 | 66 | } |
| 70 | 67 | |