Support » Plugin: Weight Tracker » Form submit buttons URL support for # id hashtag

  • Hi Ali,
    Awesome plugin, really!
    Just a minor issue that I faced recently… Is there a way how to add hashtag # from the current URL to the URL of the input buttons in the forms?

    Here is the thing.. I have a the wlt-table placed in an accordion tab, hence the URL is something like http://blabla.com/page#my-tab. When I click “edit the record”, I get directed to http://blabla.com/page??ws-edit-entry=9&user-id=1&redirect=aHR0c ..I need that this URL contains also the id hashtag. Is that possible?

    Warm greetings,

    jan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YeKen

    (@aliakro)

    Hi Jan,

    It’s not possible out of the box, but something I could look at adding in a future release?

    Probably worth submitting it as an “Issue” on the Github page so I can keep track of it?

    https://github.com/yekenuk/Weight-Loss-Tracker

    Ali

    Thread Starter MadMonkey

    (@bash2day)

    Hi Ali,

    I see, it’s ok, I’ve submitted an “issue” on Github. For the beginning, would it be possible to add a wp filter on rendered form action URL so that the developers can modify it if necessary? Below is what I mean:

    File includes/core.php line 309
    change “esc_attr( get_permalink() ),” to “apply_filters(‘wlt_form_url’, esc_attr( get_permalink() )),”

    Greetings,

    Jan

    Plugin Author YeKen

    (@aliakro)

    Yeah I’ll make it filterable in the next release.

    Thread Starter MadMonkey

    (@bash2day)

    Nice! Thanx

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Form submit buttons URL support for # id hashtag’ is closed to new replies.