=') ) { // WP >3.0 add_action( 'comment_form_after_fields', 'ayah_comment_form'); add_action( 'comment_form_logged_in_after', 'ayah_comment_form'); add_filter( 'preprocess_comment', 'ayah_comment_post' ); } else { // for WP <3.0 add_action( 'comment_form', 'ayah_comment_form' ); add_filter( 'preprocess_comment', 'ayah_comment_post' ); } } } function ayah_add_admin_menu() { add_options_page( "Are You a Human Options", "Are You a Human", 'manage_options', __FILE__, 'ayah_run_controller' ); //call register settings function when the admin settings page loads //add_action( 'admin_init', 'register_ayah_settings' ); } function ayah_plugin_action_links( $links, $file ) { static $this_plugin; //Static so we don't call plugin_basename on every plugin row. if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__); if ( $file == $this_plugin ){ $settings_link = '' . __('Settings', 'captcha') . ''; array_unshift( $links, $settings_link ); } return $links; } function ayah_register_plugin_links($links, $file) { $base = plugin_basename(__FILE__); if ($file == $base) { $links[] = '' . __('Settings','captcha') . ''; $links[] = '' . __('Support','captcha') . ''; $links[] = '' . __('Feedback','captcha') . ''; } return $links; }