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

add post type filter to enable ability to programmatically maintain which post type editor screens will use the meta box #287

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add post type filter to enable ability to programmatically maintain w…
…hich post type editor screens will use the meta box
columbian-chris committed Feb 8, 2022
commit c7802ba695ecc09e141c25227b676e331847780a
1 change: 1 addition & 0 deletions onesignal-admin.php
Original file line number Diff line number Diff line change
@@ -256,6 +256,7 @@ function admin_notice_error()
$output = 'names';
$operator = 'and';
$post_types = get_post_types($args, $output, $operator);
$post_types = apply_filters( 'onesignal_post_types_display_meta_box', $post_types );
foreach ($post_types as $post_type) {
add_meta_box(
'onesignal_notif_on_post',