• Resolved will_brett

    (@will_brett)


    Hey again,

    I’ve managed to get the plugin working with my apps now which is great!

    I do have a small issue though where I use Visual Bakery for my editors to create posts for the wordpress site.

    These shortcodes are coming through in the push notification.

    How can I either filter out the shortcodes or change what info is pushed? I was thinking I could push post title and posts excerpt field to solve this issue.

    Also is there a way to have push notifications ticket by default on all posts. I keep forgetting to tick it.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Paulo Miranda

    (@dprogrammer)

    HI,

    I tested it, and when a new post shows marked.

    Only when going to edit does it show unchecked. It had a user forgetting to deselect when editing, and sends a new notification.

    View post on imgur.com

    Only displays unchecked when creating new post if you check the disable setting

    View post on imgur.com

    If you enter the except field, it will display it in the notification. That would be the temporary solution. I will check how to remove the shortcodes

    line notification message (file fcm-dp-push-notification.php)
    ‘message’ => _mb_strlen($resume) == 0 ? _mb_substr(wp_strip_all_tags($content), 0, 55) . ‘…’ : $resume,

    great that the use of the plugin worked. thanks for using it

    Thread Starter will_brett

    (@will_brett)

    HI Paulo,

    Thanks for your reply.

    I’m not sure what you mean by:

    “If you enter the except field, it will display it in the notification. That would be the temporary solution. I will check how to remove the shortcodes”

    Can you elaborate?

    I have found the line in the plugin PHP file but not sure what I need to do with it.

    https://imgur.com/NRwsuc0

    Thank you.

    Will

    Plugin Author Paulo Miranda

    (@dprogrammer)

    HI,

    In this image, the except field is the first. It would be the news summary
    https://i1.wp.com/wordpress.org/support/files/2018/10/add-new-post-options-1024×750.png?ssl=1

    As for the PHP file, I will look for a solution to this problem of getting the shortcode of the post

    It was just to show that if you inform the mentioned field, it doesn’t take the body text

    Plugin Author Paulo Miranda

    (@dprogrammer)

    HI,

    Included routine to remove visual composer tags from page and post text

    Version 1.6.0

    If you find any errors in removing the tags, please let me know

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change plugin to push different information’ is closed to new replies.