Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function javascript_tagging() {
- global $post;
- $settings = get_post_meta( $post->ID, 'wpf-settings', true );
- if ( ! empty( $settings ) && ! empty( $settings['apply_tags'] ) ) {
- echo "<script>mt('send', 'pageview', {email: 'my@example.com', firstname: 'John', company: 'Mautic', companyemail: 'mautic@example.com', tags: '" . implode( ',', $settings['apply_tags'] ) . "'});</script>";
- }
- }
- add_action( 'wp_footer', 'javascript_tagging' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement