It would be great to allow plugins/themes for more fine grained control over the display of the favourite button on posts/pages.
Suggested solution:
(i.e. at app/Entities/Post/PostHooks)
$display = add_filter('favourites_should_display_in_post', $this->settings_repo->displayInPostType($post->post_type), $post);
This would allow to override the display of the button based on more specific aspects (i.e. show/hide for specific post, posts of specific category, posts with certain content, posts with a specific tag, etc.).
It would be great to allow plugins/themes for more fine grained control over the display of the favourite button on posts/pages.
Suggested solution: (i.e. at app/Entities/Post/PostHooks)
$display = add_filter('favourites_should_display_in_post', $this->settings_repo->displayInPostType($post->post_type), $post);
This would allow to override the display of the button based on more specific aspects (i.e. show/hide for specific post, posts of specific category, posts with certain content, posts with a specific tag, etc.).