This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Notices::get_notice_by_id( string $notice_id )
Get notice by notice_id
Description
Parameters
- $notice_id
-
(string) (Required) Notice id.
Return
(array) notice based on the notice id.
Source
File: inc/lib/astra-notices/class-astra-notices.php
private function get_notice_by_id( $notice_id ) { if ( empty( $notice_id ) ) { return array(); } $notices = $this->get_notices(); $notice = wp_list_filter( $notices, array( 'id' => $notice_id, ) ); return ! empty( $notice ) ? $notice[0] : array(); }
Expand full source code Collapse full source code View on Trac