How to use the hook
-
Amazing plugin. Just assistance with something.
I saw this in your plugin.
/* Plugins that use custom post types can use this filter to hide the PLT UI in their post type. */ $hook = 'page-links-to-post-types'; $supported_post_types = (array) apply_filters( $hook, array_keys( get_post_types( array('show_ui' => true,) ) ) ); return in_array( $type, $supported_post_types ); }
How do I utilize this? I’ve tried to add this code to my functions.php
add_filter( 'page-links-to-post-types', 'remove_for_cpt' ); function remove_for_cpt() { $supported_post_types = array('brand') }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use the hook’ is closed to new replies.