need help adding update button to topic title
I am trying to add a button to update single topic on click. Using do_action & add_action(‘update_topic’,'bbp_update_topic’,10,2); and to show button I have added: add_filter( ‘bbp_theme_before_topic_title’, ‘update_button’ ); however since the code to show the button is inserted in ‘bbp_theme_before_topic_title’ the do_action is called in every topic title on page refresh. How can I isolate the do_action to work on one single topic title at a time and only fire on button click? I am really lost on this one and appreciate any ideas or suggestions.. Thanks in advance!
You must be logged in to reply to this topic.