• Hi there,

    I tried to create a cronjob to scheduele a resave of the permalinks. When hitting run now, it says:

    Failed to the execute the cron event resave_permalinks

    I’ve added this code to my theme’s functions.php

    //flush permalinks
    add_action('resave_permalinks', 'flushit');
    function flushit() {
            flush_rewrite_rules();
    }

    Within the plug I used resave_permalinks as the Hook name, execution was now (to test things first).

    Can you please tell me what I did wrong?

    Many thanks in advance for your help!

    Kindest regards,
    Steven

    https://www.ads-software.com/plugins/wp-crontrol/

  • The topic ‘Failed to the execute the cron event resave_permalinks’ is closed to new replies.