: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace WPForms\Lite\Admin\Education\Admin;
use \WPForms\Admin\Education;
* Admin/NoticeBar Education feature for Lite.
class NoticeBar implements Education\EducationInterface {
* Indicate if current Education feature is allowed to load.
public function allow_load() {
return wpforms_is_admin_page();
if ( ! $this->allow_load() ) {
public function hooks() {
add_action( 'wpforms_admin_header_before', [ $this, 'display' ] );
* Notice bar display message.
public function display() {
$dismissed = get_user_meta( get_current_user_id(), 'wpforms_dismissed', true );
if ( ! empty( $dismissed['edu-admin-notice-bar'] ) ) {
echo wpforms_render( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
'education/admin/notice-bar',
'upgrade_link' => wpforms_admin_upgrade_link( 'notice-bar', 'Upgrade to WPForms Pro' ),