Api_Handler_Client::get_rest_endpoint(), // Get the post ID. 'postId' => get_the_ID(), 'isDebugActive' => Debug_Storage_Service::debug_mode_is_active(), // Get the refresh interval. 'refreshInterval' => Options_Storage_Service::get_refresh_interval(), ) ); // Now that it's registered, enqueue the script. wp_enqueue_script( 'force-refresh-js' ); } );