MP_Addon_CalculatorsCallRail::get_callrail_table_column( string $column_name, int $post_ID )

Get data from callrail to callrail columns.


Parameters Parameters

$column_name

(string) (Required) column name

$post_ID

(int) (Required) post id


Top ↑

Source Source

File: calculator-callrail-add-on/inc/MP_Addon_CalculatorsCallRail.php

	public function get_callrail_table_column( $column_name, $post_ID ) {

		switch ($column_name){
			case MortgagePlatform::$prefix . 'callrail_customer_phone':
				echo esc_attr( get_post_meta( $post_ID, MortgagePlatform::$prefix . 'callrail_customer_phone', true ) );
				break;
			case MortgagePlatform::$prefix . 'callrail_total_calls':
				echo esc_attr( get_post_meta( $post_ID, MortgagePlatform::$prefix . 'callrail_total_calls', true ) );
				break;
			case MortgagePlatform::$prefix . 'callrail_location':
				echo esc_attr( get_post_meta( $post_ID, MortgagePlatform::$prefix . 'callrail_location', true ));
				break;
			case MortgagePlatform::$prefix . 'callrail_tracking_phone':
				echo esc_attr( get_post_meta( $post_ID, MortgagePlatform::$prefix . 'callrail_tracking_phone', true ) );
				break;
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.