Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable for custom post types? #164

Open
shaunw opened this issue Nov 4, 2022 · 1 comment
Open

Option to disable for custom post types? #164

shaunw opened this issue Nov 4, 2022 · 1 comment

Comments

@shaunw
Copy link

shaunw commented Nov 4, 2022

Is there an option to disable for all/some custom post types?

@shaunw
Copy link
Author

shaunw commented Jun 2, 2023

🤦‍♂️

function page_links_to_plugin_post_types( $post_types ) {
	$post_types = [ 'post', 'events' ];
	return $post_types;
}
add_filter( 'page-links-to-post-types', 'page_links_to_plugin_post_types' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant