芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/pati.bf1.my/wp-content/plugins/all-in-one-seo-pack/app/Common/Api/Notifications.php
notices->remindMeLater( $slug ); return new \WP_REST_Response( [ 'success' => true, 'notifications' => [ 'active' => Models\Notification::getAllActiveNotifications(), 'dismissed' => Models\Notification::getAllDismissedNotifications() ] ], 200 ); } /** * Dismiss notifications. * * @since 4.0.0 * * @param \WP_REST_Request $request The REST Request * @return \WP_REST_Response The response. */ public static function dismissNotifications( $request ) { $slugs = $request->get_json_params(); $notifications = aioseo()->db ->start( 'aioseo_notifications' ) ->whereIn( 'slug', $slugs ) ->run() ->models( 'AIOSEO\\Plugin\\Common\\Models\\Notification' ); foreach ( $notifications as $notification ) { $notification->dismissed = 1; $notification->save(); } return new \WP_REST_Response( [ 'success' => true, 'notifications' => [ 'active' => Models\Notification::getAllActiveNotifications(), 'dismissed' => Models\Notification::getAllDismissedNotifications() ] ], 200 ); } }