Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #3460, comment 62


Ignore:
Timestamp:
03/01/2014 06:00:45 PM (6 years ago)
Author:
imath
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3460, comment 62

    initial v1  
    881) BuddyPress plugin developer using custom post types will probably use bp_activity_set_action() to set their callbacks
    992) "random" custom post types will not.
    10 So my idea of using a post type argument to set the callbacks function might not be so great or incomplete. Because post types created in 1) will probably have their own ways to generate activities, so in this case we should give them a way to avoid having 2 activities posted : 1 by their plugin, the other by the blogs component. We could rely on the 'show_in_nav_menus' argument but i'm not sure plugins are "hiding" their content visibility from being added to nav menus.
     10So my idea of using a post type argument to set the callbacks function might not be so great or incomplete. Because post types created in 1) will probably have their own ways to generate activities, so in this case we should give them a way to avoid having 2 activities posted : 1 by their plugin, the other by the blogs component. We could rely on the 'show_in_nav_menus' argument but i'm not sure plugins are "hiding" their content from being added to nav menus.
    1111
    1212Then taking in consideration Promotheus Fire comments: