0

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.

  • What code? Also, what's the post link that you were looking at? – Tony Djukic Jun 5 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.