WordPress.org

Ready to get started?Download WordPress

Forums

Simple Parse Push Service
Sending topics from bbPress (4 posts)

  1. avebrahimi
    Member
    Posted 7 months ago #

    Hi

    How can I modify plugin so it pushes after each new topic in bbPress?

    Thank you.

    http://wordpress.org/plugins/simple-parse-push-service/

  2. dtsolis
    Member
    Plugin Author

    Posted 7 months ago #

    Hi and thank you for your support!

    I didn't have the change to work on bbPress but the work around is this:
    1. search for any available hook that bbPress might have implemented
    2. if there are some hooks, find the one that is related with 'new topic'
    3. send the push

    In order to send the push via this plugin, you can modify the code below to suite your needs

    $message = 'New topic on bbPress';
    $badge = 1;
    $channels = 'channel_1,channel_2';
    $post_id = 13;
    $extraKeyForValue = 'topic_title';
    $extraValue = 'Hello from bbPress';
    
    include(plugins_url().'/simple-parse-push-service/pushFunctionality.php');
    
    sendPushNotification(get_option('simpar_appID'), get_option('simpar_restApi'), $message, $badge, $post_id, get_option('simpar_pushChannels') ,$extraKeyForValue, $extraValue);
  3. dtsolis
    Member
    Plugin Author

    Posted 7 months ago #

    I found a handy list of bbPress hooks that might be helpful http://etivite.com/api-hooks/bbpress/

  4. avebrahimi
    Member
    Posted 7 months ago #

    Thank you dtsolis!

    Now I should read a little about WP Api Hooks :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags