sc0ttkclark / wordpress-fields-api

The 2024 Fields API proposal for WordPress Core
https://make.wordpress.org/core/tag/fields-api/
361 stars 42 forks source link

Fields API breaks filter `taxonomy_parent_dropdown_args` #70

Closed alpha1 closed 1 year ago

alpha1 commented 8 years ago

I haven't been able to find the code to nail down the problem, but the FieldsAPI plugin, 0.0.7 Alpha currently breaks the filter taxonomy_parent_dropdown_args To test this, make sure you have some tags and categories, add this function and view your category add page, and you will see categories in the Parent dropdown, instead of tags. Now disable the Fields API plugin, and you'll see tags instead of categories. add_filter( 'taxonomy_parent_dropdown_args', 'change_parent_taxonomy', 10, 3); function change_parent_taxonomy( $dropdown_args, $taxonomy, $form ){ $dropdown_args['taxonomy'] = 'tags'; return $dropdown_args; }