Removing powerWords from WP-JSON pages endpoint

#1038674
  • Resolved Craig Reynolds
    Rank Math free

    Plugin Version: Rank Math SEO 1.0.245
    WP Version: 6.8.1
    Theme: Twenty Twenty-Four (child theme)
    Issue: The powerWords array is injected into every /wp-json/wp/v2/pages/{id} response. Attempts to remove it via rank_math/rest/post_data, rest_prepare_page and rest_pre_dispatch have failed.

    What I’d like: A filter hook or flag to completely remove the powerWords property from all page REST responses.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the powerWords property being injected into your REST API responses. To remove the powerWords property from all page REST responses, you can use the following filter:

    add_filter( 'rank_math/researches/tests', function( $tests, $type ) {
        unset( $tests['titleHasPowerWords'] );
        return $tests;
    }, 10, 2 );

    This code snippet will effectively remove the powerWords test from the Rank Math analysis, which should prevent it from appearing in the REST API responses.

    If you continue to experience issues or if this does not resolve your problem, please feel free to reply to this ticket, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    How to Make Your Theme Rank Math Compatible » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 ‘Removing powerWords from WP-JSON pages endpoint’ is closed to new replies.