0
votes
1answer
27 views

get_term and get_term_by returning null or false eventhough the term exists

I am trying to use the action hook delete_term, delete_$taxonomy, among other hooks that delete a term but they are presenting the same issue. For example: 1234 is an existing term in the favorite ...
0
votes
2answers
22 views

What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?

I need to delete some postmeta when deleting taxonomy terms from the backend. Before deleting the term, I need to retrieve the postmeta's meka_key and the term id that is going to be deleted. Use the ...
-1
votes
1answer
31 views

How can I get the term_id from the action hook 'set_object_terms'?

I have the following code and I want to use the term_id inside that function. I aware that the variable $terms contains the term; however, I do not know how to get the term id from it. ...
0
votes
0answers
80 views

Not getting term_id in function on category edit page

add_action ( 'edit_category_form_fields', 'extra_category_fields'); add_action ( 'edited_category', 'save_extra_category_fields'); add_action('wp_ajax_my_action', 'save_extra_category_fields'); ...