how to detect Rankmath activate on WordPress

#331531
  • Resolved Sea Theme
    Rank Math free

    Hi,

    I am a WordPress theme developer. I’m working on compatibility with the great plugin Rankmath. Can I use class_exists( 'RankMath' ) in my theme PHP codes to detect if Rankmath runs on a WordPress website? I tested the below codes and it works fine, but I don’t have a pro version, does it work for Rankmath Pro?

    if ( class_exists( 'RankMath' ) ) {
    	//run codes about Rankmath only
    }

    Thanks! Have a nice day!

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    The PRO plugin only activates if the Free plugin is already installed so, checking the existence of Rank Math with that function should be sufficient in this case.

    ​​​​​​As for the policy about theme developers, please send all the information about your theme to the email s******@r***********.

    Our product team will assess the situation and provide any feedback based on that.

    Thank you and we hope to see the integration you are working on fairly soon.

    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.

Viewing 1 replies (of 1 total)

The ticket ‘how to detect Rankmath activate on WordPress’ is closed to new replies.