Noptin_New_Post_Notify::is_automation_valid_for( $automation, $post )
Checks if a given notification is valid for a given post
Source Source
File: includes/class-noptin-new-post-notify.php
public function is_automation_valid_for( $automation, $post ) { $allowed_post_types = apply_filters( 'noptin_new_post_notification_allowed_post_types', array( 'post' ), $automation ); if ( ! in_array( $post->post_type, $allowed_post_types, true ) ) { return false; } return apply_filters( 'noptin_new_post_notification_valid_for_post', true, $automation, $post ); }
Expand full source code Collapse full source code View on GitHub