Support » Plugin: Frontend Uploader » Adding custom attribute to input field

  • Resolved Chintaru



    I’d like to add a placeholder attribute to certain input fields, and since the form fields are generated through php (why is this?) I can’t simply override the form with a template in my theme folder. So I resorted to trying to hack it into the core file frontend-uploader.php (yeah yeah I know, bad practice but it won’t be updated anyway since it’s for a short-term project) and added it to $atts and included it in the shortcode. It’s in the $atts array, has a value, but it just won’t show up in the output, unlike the class and id in the same array. Is there any other way (a hook for functions.php perhaps?) to solve this?

Viewing 1 replies (of 1 total)
  • Aaaand just as I posted it I found the solution at the bottom of /lib/php/class-html-helper.php

    If I may make a suggestion for the next update: please add some templating functionality in the next version… So core files don’t have to be hacked into for such a simple addition.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding custom attribute to input field’ is closed to new replies.