$query->get_table_name( 'orders' ), 'addresses' => $query->get_table_name( 'addresses' ), ), Collection_Rules::rules( 'orders' )['search'] ); } /** * Build legacy order search SQL. * * @deprecated Use the Collection Rules plan. * * @param string $search Search text. * @return string */ public static function posts_where( string $search ): string { return Search_Rule::posts_where( $search, Collection_Rules::rules( 'orders' )['search'] ); } }