wordpress - Trying to add a meta box using wpcf7_add_meta_boxes hook -


i've written plugin extend contact form 7 plugin. want add metabox in editing area each form shows checkbox enables/disables plugin extension.

/**  * add edit options each cf7 form  */  add_action('wpcf7_add_meta_boxes', 'wpcf7ev_add_form_options');  function wpcf7ev_add_form_options() {      add_meta_box('wpcf7ev_form_options', 'email verification', 'wpcf7ev_display_options', 'wpcf7_contact_form');  }  function wpcf7ev_display_options() {      wp_mail('myemail@gmail.com', 'debug', 'adding checkbox');      $wpcf7ev_options['active'] = 1; ?>  <input type="checkbox" id="wpcf7ev-active" name="wpcf7ev-[active]" value="1"<?php echo ( $wpcf7ev_options['active']==1 ) ? ' checked="checked"' : ''; ?> /> <label for="wpcf7ev-active">use email verification</label> <?php  } 

the wpcf7ev_display_options() function doesn't seem ever called though. checked post types , 1 of them "wpcf7_contact_form".

what missing?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -