Publicize default prefix for CPT
-
Hello!
Could you help me set up a default prefix for a Custom Post Type?
I have the following code that doesn’t work:add_filter( 'wpas_default_prefix', 'add_default_publicize_prefix_for_cpt', 10, 4 ); function add_default_publicize_prefix_for_cpt() { if ( 'post' == get_post_type() ) { $default_tags = '#Hash - '; } else { $default_tags = '#Hash : '; } return $default_tags; }
*I put ‘post’ the because I was testing it on a test site, which currently doesn’t have any CPT.
Thanks!
FG
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Publicize default prefix for CPT’ is closed to new replies.