nf_custom_cron_job_recurrence

The Ninja Forms nf custom cron job recurrence function.

Description

nf_custom_cron_job_recurrence( $schedules ); 

Parameters (1)

0. $schedules
The schedules.

Usage

  1. if ( !function_exists( 'nf_custom_cron_job_recurrence' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/ninja-forms.php'; 
  3.  
  4. // The schedules. 
  5. $schedules = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_custom_cron_job_recurrence($schedules); 
  9.  

Defined (1)

The function is defined in the following location(s).

/ninja-forms.php  
  1. function nf_custom_cron_job_recurrence( $schedules ) { 
  2. $schedules['nf-monthly'] = array( 
  3. 'display' => __( 'Once per month', 'textdomain' ),  
  4. 'interval' => 2678400,  
  5. ); 
  6. return $schedules;