get_header( 'x_sxa_connection' ) ) { return SXA_Connections::verify_request( $request ); } return current_user_can( 'edit_posts' ); } public static function routes() { register_rest_route( 'sentrixa-seo/v1', '/status', array( 'methods' => 'GET', 'permission_callback' => array( __CLASS__, 'permission' ), 'callback' => function () { return array( 'installed' => true, 'version' => SXSEO_VERSION, 'edition' => self::is_pro() ? 'full' : 'free', 'licence' => function_exists( 'sentrixa_license_state' ) ? sentrixa_license_state() : 'none' ); }, ) ); } }