Home Forums Plugin Support WP User Frontend Pro Alter the javascript call

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15411

    M
    Member
    Post count: 16

    Hello,

    I have a question about the following code which is in the render-form.php:

                <?php if ( $taxonomy ) { ?>
                <script type="text/javascript">
                    jQuery(function($) {
                       $('li.tags input[name=tags]').suggest( wpuf_frontend.ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 0, minchars: 1, multiple: true, multipleSep: ', ' } );
                    });
                </script>
                <?php } ?>

    How can I remove the javascript ( .suggest( wpuf_frontend.ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 0, minchars: 1, multiple: true, multipleSep: ', ' } suggest and add my own javascript to the inputfield for the tags?

    #15431

    Tareq Hasan
    Keymaster
    Post count: 2831

    The only way is to replace that code block with yours one.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Alter the javascript call’ is closed to new replies.