WPIntell

Source evidence

Disable post update notification

Perfecty Push Notifications · support · 2023-03-31T16:57:00+00:00

complaintsentiment
mediumseverity
0.8relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Ivan unresolved
Hello, How can i disable post update notification ? I want to send notification only when the post is created. Thx Hi, Ivan. I thought the same thing as you. Paste the following at the end of your active theme's function.php. So You can uncheck "Send notification on publish" automatically when updating posts. //Uncheck Perfecty Push Notifications when updating posts function hide_metabox_on_new_post() { global $pagenow; if ( $pagenow == 'post-new.php' ) { remove_meta_box( 'PPN-unchecked', 'post', 'normal' ); } } function show_metabox_on_edit_post() { global $pagenow; if ( $pagenow == 'post.php' ) { add_meta_box( 'PPN-unchecked', 'PPN-unchecked', 'PPN_unchecked_inner', 'post', 'normal', 'low' ); } } function PPN_unchecked_inner() { echo <<< EOM EOM; } add_action( 'add_meta_boxes', 'show_metabox_on_edit_post' ); add_action( 'admin_head', 'hide_metabox_on_new_post' ); Thx I am leaving “send notif on publish” for the initial publish, and then uncheck it when updating post. Sorry, between “echo <<< EOM” and “EOM;” was deleted. I escape HTML tags. //Uncheck Perfecty Push Notifications when updating posts function hide_metabox_on_new_post() { global $pagenow; if ( $pagenow == 'post-new.php' ) { remove_meta_box( 'PPN-unchecked', 'post', 'normal' ); } } function show_metabox_on_edit_post() { global $pagenow; if ( $pagenow == 'post.php' ) { add_meta_box( 'PPN-unchecked', 'PPN-unchecked', 'PPN_unchecked_inner', 'post', 'normal', 'low' ); } } function PPN_unchecked_inner() { echo <<< EOM <script> window.addEventListener("load",function() { let checkbox = document.getElementById('perfecty_push_send_on_publish'); if (checkbox.checked) { checkbox.checked = false; } }) </script> EOM; } add_action( 'add_meta_boxes', 'show_metabox_on_edit_post' ); add_action( 'admin_head', 'hide_metabox_on_new_post' ); This reply was modified 3 years, 1 month ago by localnavi .

Comments

3 shown
localnavi 2023-04-02T07:07:00+00:00

Hi, Ivan. I thought the same thing as you. Paste the following at the end of your active theme's function.php. So You can uncheck "Send notification on publish" automatically when updating posts. //Uncheck Perfecty Push Notifications when updating posts function hide_metabox_on_new_post() { global $pagenow; if ( $pagenow == 'post-new.php' ) { remove_meta_box( 'PPN-unchecked', 'post', 'normal' ); } } function show_metabox_on_edit_post() { global $pagenow; if ( $pagenow == 'post.php' ) { add_meta_box( 'PPN-unchecked', 'PPN-unchecked', 'PPN_unchecked_inner', 'post', 'normal', 'low' ); } } function PPN_unchecked_inner() { echo <<< EOM EOM; } add_action( 'add_meta_boxes', 'show_metabox_on_edit_post' ); add_action( 'admin_head', 'hide_metabox_on_new_post' );

Ivan 2023-04-02T20:45:00+00:00

Thx I am leaving “send notif on publish” for the initial publish, and then uncheck it when updating post.

localnavi 2023-04-04T22:28:00+00:00

Sorry, between “echo <<< EOM” and “EOM;” was deleted. I escape HTML tags. //Uncheck Perfecty Push Notifications when updating posts function hide_metabox_on_new_post() { global $pagenow; if ( $pagenow == 'post-new.php' ) { remove_meta_box( 'PPN-unchecked', 'post', 'normal' ); } } function show_metabox_on_edit_post() { global $pagenow; if ( $pagenow == 'post.php' ) { add_meta_box( 'PPN-unchecked', 'PPN-unchecked', 'PPN_unchecked_inner', 'post', 'normal', 'low' ); } } function PPN_unchecked_inner() { echo <<< EOM <script> window.addEventListener("load",function() { let checkbox = document.getElementById('perfecty_push_send_on_publish'); if (checkbox.checked) { checkbox.checked = false; } }) </script> EOM; } add_action( 'add_meta_boxes', 'show_metabox_on_edit_post' ); add_action( 'admin_head', 'hide_metabox_on_new_post' ); This reply was modified 3 years, 1 month ago by localnavi .