const { registerBlockType } = wp.blocks; const { TextControl } = wp.components; const { useState, useEffect } = wp.element; const { useBlockProps } = wp.blockEditor; // Register the custom Apple Podcast oEmbed block registerBlockType('custom/apple-podcast', { title: 'Apple Podcast Embed', icon: 'microphone', category: 'embed', supports: { html: false, // Disable the default oEmbed handling }, attributes: { applePodcastURL: { type: 'string', default: '' }, podcastEmbedHtml: { type: 'string', default: '' } }, edit: function (props) { const { attributes, setAttributes } = props; const { applePodcastURL, podcastEmbedHtml } = attributes; const blockProps = useBlockProps(); const [error, setError] = useState(null); const embedRef = wp.element.useRef(); // Function to update the URL and embed const onChangeApplePodcastURL = (url) => { setAttributes({ applePodcastURL: url }); // Extract the podcast ID from the URL const podcastID = extractPodcastID(url); if (podcastID) { const embedHtml = ``; setAttributes({ podcastEmbedHtml: embedHtml }); } else { setError('Invalid Apple Podcast URL'); } }; // Extract the Podcast ID from the URL const extractPodcastID = (url) => { const match = url.match(/id(\d+)/); return match ? match[1] : null; }; // Use effect to manually set inner HTML for the embed useEffect(() => { if (embedRef.current && podcastEmbedHtml) { embedRef.current.innerHTML = podcastEmbedHtml; } }, [podcastEmbedHtml]); return (
{error &&

{error}

}
); }, save: function (props) { const { attributes } = props; const { podcastEmbedHtml } = attributes; // Output the embed HTML directly as a string to avoid JSX rendering issues return podcastEmbedHtml ? ( `
${podcastEmbedHtml}
` ) : null; } }); Cody Rhodes' Planned WrestleMania 38 Opponent Revealed
[show_primary_category]

Seth Rollins’ time in promotions such as Ring Of Honor definitely helped him improve his skills before debuting in WWE. Rollins’ current obnoxious heel character never fails to annoy fans. On top of that, Rollins really doesn’t do scripted promos as such, just like Roman Reigns.

The Messiah of Drip made his way to Monday Night RAW in October and has been a thorn on everyone’s side since then. The Messiah simply loves getting under the skin of anyone and everyone.

Seth Rollins and Kevin Owens were unable to win the RAW Tag Team titles on this week’s episode of Monday Night RAW. After this, Seth Rollins also blacked out all of his social media accounts as his WrestleMania 38 future is uncertain now.

According to Fightful Select, Cody Rhodes was pitched to be Seth Rollins’ opponent for WrestleMania 38. However, that is up in the air as Rhodes is considering his options right now.

Advertising
Advertising

“Sources for Fightful Select’s recent Cody Rhodes update indicated Cody was pitched as Seth Rollins’ WrestleMania opponent, but that’s obviously up in the air now

The ball is currently in Cody Rhodes’ court as it depends on him what he will do in the end. Should Rhodes not make his return to WWE, we will have to wait and see who will ultimately become Seth Rollins’ opponent at WrestleMania 38.

What’s your take on this story? Sound off in the comments!

Subhojeet Mukherjee

Subhojeet, a professional wrestling fan for over 20+ years, found his passion during the Monday Night Wars. With expertise honed over decades and a broad spectrum of interests including TV, movies, anime, novels, and music, he offers insightful analysis and coverage. Respected in the industry, Subhojeet keeps fans informed and engaged with his knowledge and perspective.

Disqus Comments Loading...