Delay Ping

#692672
  • Resolved Satish Sharma
    Rank Math free

    Give a Function to delay pinging posts to search engines when it is published.
    I want to delay ping by 5 mins irrespective of rank math or or WordPress default ping.

    If I publish a post it should delay it shouldn’t ping immediately and should be pinged only after 5mins.

Viewing 1 replies (of 1 total)
  • Hello, I’m sorry for the inconvenience you’re experiencing. Currently, Rank Math doesn’t have a built-in feature to delay pinging posts to search engines. However, you can achieve this by using a custom function in your WordPress installation.

    You can use the publish_post hook to delay the ping. Below is an example of how you can achieve this:

    function delay_ping($post_id) {
        $time_delay = 5 * 60; // 5 minutes in seconds
        wp_schedule_single_event(time() + $time_delay, 'do_pings');
    }
    add_action('publish_post', 'delay_ping');

    You can add this code to your theme’s functions.php file or use a custom plugin to add this functionality.

    If you need further assistance with implementing this, please feel free to reach out to our support team by assigning this ticket to us. Thank you for bringing this to our attention!

    Sources:
    Making the Most of the Analytics in Rank Math
    How to Change the Date & Time on Your Posts/Pages » Rank Math
    How to Noindex URLs With Rank Math » Rank Math
    How to Submit a Sitemap to Google » 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 ‘Delay Ping’ is closed to new replies.