Skip to content

Commit

Permalink
#4326 - Changed the filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
WasimM3 committed May 20, 2020
1 parent 35a6404 commit 5ea1855
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions templates/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -8466,12 +8466,8 @@ function ampforwp_update_taxonomy_meta($term_id, $term_id1){
add_action('create_'.esc_attr($taxonomy), 'ampforwp_save_taxonomy_meta', 10);
add_action('edited_'.esc_attr($taxonomy), 'ampforwp_update_taxonomy_meta',10,2);
add_action('create_'.esc_attr($taxonomy), 'ampforwp_save_taxonomy_meta', 10);
if($taxonomy!='category' && isset($_REQUEST['tag_ID'])){
add_action ( 'edit_tag_form_fields', 'ampforwp_extra_category_fields');
}else{
add_action ( 'edit_'.$taxonomy.'_form_fields', 'ampforwp_extra_category_fields');
}
add_action ( $taxonomy.'_add_form_fields', 'ampforwp_extra_category_fields');
add_action (esc_attr($taxonomy).'_edit_form_fields', 'ampforwp_extra_category_fields');
add_action (esc_attr($taxonomy).'_add_form_fields', 'ampforwp_extra_category_fields');
}
function ampforwp_extra_category_fields( $tag ) {
$label = 'Category';
Expand Down

0 comments on commit 5ea1855

Please sign in to comment.