run cron job

Discussion in 'PHP' started by lew1s666, Sep 1, 2014.

  1. #1
    I want to run an function from a plugin every day.

    The plugin needs to run a function process_import_properties_button(){

    So the Cron job has to execute this function every day .

    What is the hook fort this ?

    add_action('my_hookname', 'my_function');

    function my_function() {
    wp crontrol run-event ('process_import_properties_button')
    }

    https://wordpress.org/plugins/wp-crontrol/
     
    lew1s666, Sep 1, 2014 IP