rest_url('allaccessible/v1/'), 'nonce' => wp_create_nonce('wp_rest'), 'post_id' => get_the_ID(), 'labels' => array( 'loading' => __('Loading score...', 'allaccessible'), 'error' => __('Error loading score', 'allaccessible'), 'rescan_success' => __('Rescan initiated successfully', 'allaccessible'), 'rescan_error' => __('Error initiating rescan', 'allaccessible'), ), )); } /** * Render accessibility score meta box */ public function render_meta_box($post) { $post_url = get_permalink($post->ID); // If post is not published, show notice if ($post->post_status !== 'publish') { ?>