Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

meg@info on "[Plugin: Contact Form 7] Add CSS Class to fields"

$
0
0

Thanks for purposes,

by dumping the $tag array by this code :

add_filter( 'wpcf7_form_tag', 'dump_wpcf7_form_tag_filter' );
function dump_wpcf7_form_tag_filter( $tag ) {
  if ( ! is_array( $tag ) )
  return $tag;
  echo "<pre>";
  var_dump($tag);
   echo "</pre>";
  return $tag;
}

( PS: if you test the code, the result are double, it like do_shortcode_tag() is executed two time ?)

I was made many tests, and i see that the css class for all components is returned by wpcf7_form_controls_class.

i suggest adding a filter in wpcf7_form_controls_class function, this will make adding css class more easy.

Reagrds,


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>