'; } /** * composes automation tag (with userId taken by token) * @return string */ public function composeAutomationTag() { qmerce_add_sdk_for_shortcode(); return ''; } /** * Returns the publisher token from the DB. * @return string */ private function getAuthToken() { $qmerceSettings = get_option( 'qmerce-settings-admin' ); $authToken = $qmerceSettings['auth_token']; if ( isset($authToken) && is_array($authToken) ) { $authToken = is_array($authToken) ? $authToken[0] : $authToken; } else { $authToken = ''; } return $authToken; } }