• Resolved edward_plainview

    (@edward_plainview)


    Author of Broadcast here!

    A user of mine would like to broadcast the posts that are inserted via your plugin.

    To do that, I would like an action to hook in to. Perhaps, in includes / feed-importing.php, in the wprss_items_insert_post() function, right at the bottom of the

    foreach ( $items as $i => $item ) {

    loop… please add something like

    do_action( 'wprss_item_inserted', $inserted_ID );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @edward_plainview

    As this is related to the premium add-on feed to post, kindly ask the client to open a support ticket from their account dashboard for more specific and personalized assistance.

    Thread Starter edward_plainview

    (@edward_plainview)

    What?

    I just downloaded the plugin from the repo and can find the same function in the

    includes / feed-importing.php file.

    Do you mean that the version in the repo is a paid plugin, somehow?

    Hi @edward_plainview

    Re-checking your message, I may have misunderstood your question. Are you referring to hooking to the feed item added event?

    Please use the following filter

    add_action('wprss_items_create_post_meta', function ($item_id, SimplePie_Item $item, $feed_id) {
        // do broadbast
    }, 10, 3);

    Let me know how this goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add action for post inserted’ is closed to new replies.