LLMS_Abstract_Exportable_Admin_Table::get_export( array $args = array() )

Gets data prepared for an export


Parameters Parameters

$args

(array) (Optional) Query arguments to be passed to get_results().

Default value: array()


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.exportable.admin.table.php

	 *
	 * @since 3.15.0
	 * @since 3.15.1 Unknown.
	 *
	 * @param array $args Query arguments to be passed to get_results().
	 * @return array
	 */
	public function get_export( $args = array() ) {

		$this->get_results( $args );

		$export = array();
		if ( 1 === $this->current_page ) {
			$export[] = $this->get_export_header();
		}

		foreach ( $this->get_tbody_data() as $row ) {
			$row_data = array();
			foreach ( array_keys( $this->get_columns( 'export' ) ) as $row_key ) {
				$row_data[ $row_key ] = html_entity_decode( $this->get_export_data( $row_key, $row ) );


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.1 Unknown.
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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