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; } } Digital Marketing Services in Adelaide | PPC | Search Ads | SEO

Digital strategies that outperform

With over 40 years of experience and a team of digital experts, we know what it takes to build campaign strategies that don’t just make an impression—they drive action.

At Them Advertising, we don’t just promise performance—we deliver it. Our digital marketing services are laser-focused on one thing: achieving measurable results for your business.

Drive leads, boost sales, and grow your bottom line with results-driven digital marketing.

Results That Matter

Every campaign we execute is based on achieving business results such as generating leads, sales, and revenue.

Data-Driven Strategies

Our proprietary process uses real-time insights and analytics to maximise performance and ROI.

Tailored for Your Business

No cookie-cutter approaches here. We craft strategies that align with your unique goals by doing a deep dive into your category, business and current performance.

Proven Expertise

We’ve helped businesses of all sizes achieve outstanding results in competitive markets.

Brands we’ve partnered with…

Let’s talk about your digital strategy