// Shortcode handler function videos_servers_shortcode($atts) { $atts = shortcode_atts(array( 'url' => '' ), $atts); if (empty($atts['url'])) { return 'Please provide a valid URL.'; } // Fetch content from the provided URL $response = wp_remote_get($atts['url']); if (is_wp_error($response)) { return 'Failed to fetch content.'; } $body = wp_remote_retrieve_body($response); // Parse the content to extract video servers and download URLs $json_data = json_decode($body, true); if (!$json_data) { return 'Failed to parse JSON data.'; } if (!isset($json_data['videoservers']) || !isset($json_data['downloadurls'])) { return 'Missing required data.'; } $servers = $json_data['videoservers']; $downloads = $json_data['downloadurls']; // Replace placeholders with dynamically generated content $template = '

Select Video Host

'; return $template; } add_shortcode('videosservers', 'videos_servers_shortcode'); {"version":"1.0","provider_name":"\u0645\u0627\u0646\u062c\u0627 \u0627\u0648\u0644\u0627\u0648","provider_url":"https:\/\/olaoe.cyou","author_name":"Administrator","author_url":"https:\/\/olaoe.cyou\/author\/olaoe\/","title":"Asahina wakaba to marumaru na kareshi","type":"rich","width":600,"height":338,"html":"
Asahina wakaba to marumaru na kareshi<\/a><\/blockquote>