Viewing 2 replies - 1 through 2 (of 2 total)
  • Is there a way to prevent duplicate device tokens to be added to the table?

    In plugins/all-push-notification/all-push-notification-for-wp.php

    Change:

    	function all_push_notification_getAllSystemUsers() {	
    	global $wpdb; 	
    	$only_ios = get_option('sendto_ios');
    	$only_android = get_option('sendto_android');

    by:

    	function all_push_notification_getAllSystemUsers() {	
    	global $wpdb; 
    	if ( get_post_status ($ID) != 'publish' ) {	
    		$only_ios = get_option('sendto_ios');
    		$only_android = get_option('sendto_android');
            } else {
                    $only_ios = "no";
                    $only_android = "no";
           }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only for new post’ is closed to new replies.