MP_Addon_CalculatorsCallRail::sort_by_location( object $object )
Function sort by location for callrail.
Contents
Parameters Parameters
- $object
-
(object) (Required)
Source Source
File: calculator-callrail-add-on/inc/MP_Addon_CalculatorsCallRail.php
public function sort_by_location( $object ) {
if ( $object->get( 'orderby' ) !== 'sort_' . MortgagePlatform::$prefix . 'callrail_location' ) {
return;
}
$object->set( 'meta_key', MortgagePlatform::$prefix . 'callrail_location' );
$object->set( 'orderby', 'meta_value' );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |