Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get group meta value without filter


  • luice
    Participant

    @luice

    groups_get_groupmeta()

    Now we have store serialize data (array) in group meta fields. when we have view data on bp_register_group_extension() this one return all content. we need a just short code value.

    
    a:3:{i:1;a:2:{s:5:"title";s:43:"If you are now to the community, start here";s:5:"value";s:26:"[resources-group id="369"]";}i:2;a:2:{s:5:"title";s:36:"A group of resources for Lay Readers";s:5:"value";s:26:"[resources-group id="369"]";}i:3;a:2:{s:5:"title";s:32:"Resources recommended by member ";s:5:"value";s:26:"[resources-group id="369"]";}}

    front side data

Viewing 1 replies (of 1 total)

  • luice
    Participant

    @luice

    remove_filter('the_content', 'do_shortcode', 11); 
    $setting = groups_get_groupmeta( $group_id, 'group_resources_setting');
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar