How to add filter to post_name just for a CPT
Question
I was seeing this post on how to add a filter that allows adding dots to post_name.
I made a change to use only dots.
I want to make it work only for one type of CPT.
But I don’t know how to check this in the admin.
I’m trying to add_action (‘admin_init’, ‘…’);
But when it passes through admin-ajax.php, it does not recognize the conditions to check the type of CPT.
See my code.
0
admin, custom-post-types, slug
3 years
2020-06-02T00:11:22-05:00
2020-06-02T00:11:22-05:00 0 Answers
97 views
0
Leave an answer