Skip to content

Instantly share code, notes, and snippets.

@rahularyan
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahularyan/1c5855cdea3ecbd75bff to your computer and use it in GitHub Desktop.
Save rahularyan/1c5855cdea3ecbd75bff to your computer and use it in GitHub Desktop.
<?php
//like you want to override form_field($field, $style), then do this:
qw_add_action('form_field', 'my_form_field_override');
function my_form_field_override($themeclass, $field, $style){
if (@$field['type'] == 'qw_qaads_multi_text') {
$themeclasss->form_prefix($field, $style);
$themeclass->qw_qaads_form_multi_text($field, $style);
$themeclass->form_suffix($field, $style);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment