I used to have both PCsteps.gr and Lifesteps.gr on the same server with the same IP. Oembed would work by default, I could embed posts from one site to the other without any problems.
However, since moving lifesteps.gr on a different server, embeds won't work anymore. It is my understanding that to embed lifesteps posts to pcsteps, I need to add lifesteps as an oembed provider to pcsteps.
I have added the following code, that I have created here.
// Register oEmbed providers
function custom_oembed_provider() {
wp_oembed_add_provider( 'https://www.lifesteps.gr/*', 'https://www.lifesteps.gr/oembed/', false );
}
add_action( 'init', 'custom_oembed_provider' );
However, this doesn't work. I suspect that the https://www.lifesteps.gr/oembed/ base url that I am using is wrong. However, I couldn't find if there is a default type for base oembed url for self-hosted wordpress sites.