Hide Core Button block with no url

Is there any way to hide all the core buttons block with no url?

The Case:

So I have a “template post” for a few authors. The way it works is the author will duplicate the post with plugin and edit the post. One of the part of the post is a buttons block with 2 button. But not all the post will have both buttons, or sometimes the post not need button at all. And the authors sometime not woprdpress savvy enough to delete the button.

Fromthe example, the 1st button contain link (to a youtube video), and the 2nd doesn’t have link. How I hide the empty link button, like from theme functions.php? Is that possible?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer