LLMS_Processor_Table_To_Csv::schedule_generation( int $table )

Schedule the generation of a CSV This will schedule an event that will setup the queue of items for the background process


Description Description


Parameters Parameters

$table

(int) (Required) instance of an LLMS_Table


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/processors/class.llms.processor.table.to.csv.php

	public function schedule_generation( $table ) {

		$this->log( sprintf( 'csv generation triggered for table %s', $table->get_handler() ) );

		$args = array( $table->get_handler(), get_current_user_id(), $table->get_args() );

		$this->_lock_table( $table->get_export_lock_key() );

		if ( ! wp_next_scheduled( $this->schedule_hook, $args ) ) {

			wp_schedule_single_event( time(), $this->schedule_hook, $args );
			$this->log( sprintf( 'csv generation scheduled for table %s', $table->get_handler() ) );

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.