id && ! \Dashbread\Core\Admin::is_screen( (string) $screen->id ) ) ) {
return;
}
printf(
'
',
esc_html(
sprintf(
/* translators: 1: installed Dashbread Pro version, 2: required version */
__( 'Dashbread Pro %1$s is older than this version of Dashbread requires (%2$s). Pro features are unavailable until Dashbread Pro is updated.', 'dashbread' ),
DASHBREAD_PRO_VERSION,
DASHBREAD_MIN_PRO
)
)
);
}
);
add_action( 'plugins_loaded', static fn() => \Dashbread\Core\Plugin::instance()->boot(), 5 );
if ( ! function_exists( 'dashbread_notify' ) ) {
/**
* Send an in-app notification to a member. Add-ons call this; Pro adds email delivery.
*
* @param array{title?:string,body?:string,url?:string,icon?:string,data?:array} $payload
*/
function dashbread_notify( int $user_id, string $type, array $payload ): int {
return \Dashbread\Notifications\Notifications::notify( $user_id, $type, $payload );
}
}