Hello,
Thank you for contacting Rank Math today.
With our plugin you can use the following code snippet:
<?php do_action( 'rank_math/head' );?>
This will be the equivalent of what you are using from Yoast SEO.
Don’t hesitate to get in touch if you have any other questions.
Hello, thank you for your response. This doesn’t work at all. Could you please confirm?
Hello,
I tested that code on my end and it seems to be working well.
Can you please try clearing your website cache and check again?
I the issue persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.