Support » Plugin: Cronjob Scheduler » Formatting custom cron action

  • Resolved jacquid

    (@jacquid)


    I created this function, which I named nightly_search_index:

    function nightly_search_index () {
        relevanssi_build_index();
    };
    add_action('nightly_search_index', 'nightly_search_index');

    relevanssi_build_index(); is a function I’m trying to schedule from another plugin.

    I am not sure about the params for add_action? I thought I read somewhere to name the same, but can’t find where that was… Thanks.

    j

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author chrispage1

    (@chrispage1)

    Hi,

    Sorry for the delay in replying. Once you have created this function, you can then use Cronjob Scheduler to fire the ‘nightly_search_index’ function every day.

    Chris.

Viewing 1 replies (of 1 total)
  • The topic ‘Formatting custom cron action’ is closed to new replies.