Skip to:
Content
Pages
Categories
Search
Top
Bottom

add_action( ‘groups_group_create_complete’, ‘my_function’ ); From Code


  • Phill Healey
    Participant

    @munklefish

    I’m trying to create a Welcome post to the activity stream of a group once that group has been created.

    To do this it seems that add_action( 'groups_group_create_complete', 'my_function' ); is the hook to use.

    However, this appears to only be called when the group is created from the front-end. If the group is created in the WP-Admin or programmatically the hook doesn’t fire.

    Is this expected behaviour and is there a best alternative for use under the given circumstances?

  • You must be logged in to reply to this topic.
Skip to toolbar