How to disable WordPress post/page embeds?

Hello,
Site: http://yourtechadvisors.com
I am currently using this plugin.
https://wordpress.org/plugins/disable-embeds/
I am trying to cut back on plugins and am trying to go strict code. Is there any code to add to functions.php to achieve the same effect? Video embeds can stay, but post/page embeds need to be disabled.

Thanks.