rep__get_suburb_post_id()
This function, retrieves a post ID based on a search location from the database and returns it as data.
Namespace
REP_Malcolm
Return
data
Suburb post ID data.
Source
File: \includes\rep-helper-functions.php
function rep__get_suburb_post_id( $search_location ){
global $wpdb;
$sql = "SELECT post_id FROM {$wpdb->prefix}rep_suburb WHERE search_location=%s";
$query = $wpdb->prepare( $sql, $search_location );
$data = $wpdb->get_results($query ,'ARRAY_A');
return !empty( $data ) && isset( $data[0]['post_id'] ) ? ( $data[0]['post_id'] ) : null;
}
Related
This function, is designed to generate HTML for displaying employee details based on the provided employee post ID and content…
Used to get the agency experience url parameters to attached on post permalinks
This function, is used to generate HTML representation for agency opening hours based on the provided agency post ID. Namespace…
This function is responsible for generating HTML markup that displays agency rating details, including the average rating and the total…
This function is used to retrieve a specific detail for an agency search filter based on the provided $detail parameter….
This function checks if post types are allowed to sync Namespace REP_Malcolm Parameters $api_data array Malcolm API data. Return bool…
This method, is used to generate HTML representation of a date and time based on a given DateTime object, using…
This function, generates HTML for displaying employee contact details based on the provided contact_details array and allows for customizing the…
This function, is designed to generate HTML for displaying employee details based on the provided employee post ID and content…
This function is used to retrieve a specific detail for an employee search filter based on the provided $detail parameter….
This function, is used to render HTML representation for employee statistics based on the provided post ID. Namespace REP_Malcolm Parameters…
This function is used to generate an HTML link for making an inquiry, typically associated with a specific listing state…
This function, generates HTML representation of a property listing event. It includes details like event type, date, time, and venue,…
This function is used to retrieve the agency post ID associated with a listing or agent based on the provided…
This function is used to retrieve the agency location ID associated with a listing or agent based on the provided post…
This function, retrieves a post ID based on either an agency ID or agency location id from the database and…
This function is used to retrieve the agency post ID associated with a listing or agent based on the provided…
Used to get the agency experience url parameters to attached on post permalinks
This function, is used to retrieve the display price of a listing based on the provided post ID. Namespace REP_Malcolm…
This function, retrieves a post ID based on an Employee ID from the database and returns it as data. Namespace…
This function is used to retrieve the URL of an event archive page based on the provided event type. It…
This function is used to retrieve the URL of a lead generation page based on the provided search type and…
This function is used to retrieve a list of agent post IDs associated with a listing based on the provided…
This function is used to retrieve the URL of a listing archive page based on the provided search type and…
This function is responsible for retrieving listing upcoming events based on various parameters and returning the result as an array….
This function, customizes the retrieval of property listing video links based on a specified link type and returns the link…
This function, retrieves a post ID based on a Listing ID from the database and returns it as data. Namespace…
This function is used to generate HTML representation for listing statuses based on the provided post ID. Namespace REP_Malcolm Parameters…
This function is used to retrieve the listing statuses based on the provided post ID. Namespace REP_Malcolm Parameters $post_id int…
This function, retrieves the logo image URL from a given value and returns the URL of the logo image. Namespace…
This function takes a single argument, $value, and returns a string representing a URL link to a Malcolm image. Namespace…
This function takes a single argument, $value, which is expected to be an array of images in Malcolm format. Namespace…
This function, is designed to retrieve a placeholder image URL based on the provided placeholder type. Namespace REP_Malcolm Parameters $type…
This function Get the primary agency profile from malcolm api response data. Namespace REP_Malcolm Parameters $api_data array Malcolm API data….
Get the primary agent profile from malcolm api response data. Namespace REP_Malcolm Parameters $api_data array Malcolm API data Return array…
This function is used to get a list of related search categories based on a given keyword (listing state or…
This function is used to retrieve the URL of a search filter page based on the provided search type, listing…
This function renders the Sync Log Files HTML markup to display sync log file content. Namespace REP_Malcolm Return array An…
This function is used to retrieve the label associated with a given search type. Parameters $type string Search type. Return…
This function retrieves the list of fields that are marked for synchronization in a given field group for a specific…
This code constructs HTML for displaying agency profiles, encompassing images and details, utilizing provided parameters. Namespace REP_Malcolm Return string Agency…
The function also checks if the agent’s post is hidden or if there’s a link to the agent’s page, and…
This function, groups listing events based on a specified key and returns them as an array of grouped events. Namespace…
This function is used to retrieve a specific detail for a lead search filter based on the provided $detail and…
This function, is used to generate HTML representation for listing attributes based on the provided data array and the post…
This function takes the value of a data field and generates the HTML markup to display the value as a…
This function, customizes the retrieval of property listing events and filters them to return an array of upcoming events grouped…
This function is used to normalize search categories by a given set and return a list of normalized search categories. Namespace…
This function is used to retrieve details related to property search filters for listings. It allows you to get specific…
This function is used to retrieve a specific detail for a suburb search filter based on the provided $detail parameter….
This function takes a field value and generates the HTML markup for displaying an embed map. The embed map is…