• Resolved tanckom

    (@tanckom)


    I want to add some custum functions to the “Preview” button of the /add page (wpadverts/templates/add.php). Where is the function to go to wpadverts/templates/add-preview.php located?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    The function which controls which template file to display (add.php or add-preveiw.php) is shortcode_adverts_add() and you will find it in file wpadverts/includes/shortcodes.php

    Note that if you wish to run some custom code when Ad is being previewd it is recommended to use “adverts_action_preview” filter instead of modifying original source code.

    Thread Starter tanckom

    (@tanckom)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function of Submit Button on /add page’ is closed to new replies.