function lms_sub_script() { wp_enqueue_script( 'script-name', get_stylesheet_directory_uri() . '/assets/js/ajax.js', array(), '1.0.1', true ); wp_localize_script('script-name', 'ajax_var', array( 'url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('ajax-nonce') )); } add_action('wp_ajax_nopriv_lms_submit', 'lms_sub'); add_action('wp_ajax_lms_submit', 'lms_sub'); function lms_sub() { // Check for nonce security if ( ! wp_verify_nonce( $_POST['nonce'], 'ajax-nonce' ) ) { die (); } $username = sanitize_text_field(get_option('leadtrackr_username')); $password = sanitize_text_field(get_option('leadtrackr_password')); $userpass = $username . ':' . $password; $title = sanitize_text_field(get_option('leadtrackr_title')); $client_name = sanitize_text_field(get_option('leadtrackr_client_name')); $endpoint_url = sanitize_text_field(get_option('leadtrackr_website_url')); $body = array( 'title' => $title . date("dmYHis"), 'status' => 'publish', // the below is the id of the taxonomy on LMS dashboard 'website' => array(2), 'acf' => array( 'lead_type' => 'phone', 'first_name' => '', 'email' => '', 'utm_source' => $_POST['source'], 'utm_medium' => $_POST['medium'], 'utm_campaign' => $_POST['campaign'], 'utm_content' => $_POST['content'], 'utm_term' => $_POST['term'], // below needs to be edited for specific client 'client' => $client_name ) ); $response = wp_remote_post( $endpoint_url, array('headers' => array( 'Authorization' => 'Basic ' . base64_encode( $userpass ), 'Content-Type' => 'application/json' ), 'body' => json_encode($body) ) ); if ( is_wp_error( $response ) ) { $error_message = $response->get_error_message(); return $error_message; } else { return $response; } } Home - Them Advertising

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque enim ipsam voluptatem quia voluptas sit aspernatur aut.

Full Service.
With a full stop.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

A bit about Them

Our latest and greatest

See all work

VIP Home Services Recruitment Campaign

Bringing it home with a digital campaign for V.I.P.

VIP Home Services Recruitment Campaign

Bringing it home with a digital campaign for V.I.P.

Titomic Rebrand

Designing a new face for a global brand

Titomic Rebrand

Designing a new face for a global brand

Thirsty Camel Loyalty Campaign

Overcoming a hump for Thirsty Camel

Thirsty Camel Loyalty Campaign

Overcoming a hump for Thirsty Camel

MetroMap ‘Like a Pro’ Campaign

Acing a brand awareness campaign

MetroMap ‘Like a Pro’ Campaign

Acing a brand awareness campaign

Some of what Them can do

See all services

Strategy

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.

Read more

Creative

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.

Read more

Digital

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.

Read more

Brands we’ve partnered with…

News

See all news

Read more

Them Advertising wins the 2024 Australian Marketing Institute Excellence Award

Them Advertising and Thirsty Camel Bottleshops were announced as the winners of the 2024 Australian Marketing Institute Excellence Award in the Loyalty and Retention category for our ‘Camel Card’ Registration Campaign.

Read more

An exciting new partnership

We’re excited to announce our appointment to Services Australia’s national creative and digital communication services panel.
UDIA Awards

Read more

Them proudly promoting women in the property industry

Them was a proud sponsor of the Urban Development Institute of Australia (SA) Women in Leadership award at the 2023 Awards for Excellence.

Our Partners