Skip to:
Content
Pages
Categories
Search
Top
Bottom

Possible to hook into bbp_get_forum_post_type_supports?


  • Crayz
    Participant

    @crayz

    I’d like to enable custom fields for my forums, is there a way I can hook into or modify bbp_get_forum_post_type_supports without having to change the core files?

    Alternatively, if possible, I’d like to add additional fields to forum attributes during the forum creation process. I just need to set up a field to save and read string data for a custom theme 🙂

Viewing 1 replies (of 1 total)

  • Robkk
    Moderator

    @robkk

    Yes, there is a filter.

    function bbp_get_forum_post_type_supports() {
    	return apply_filters( 'bbp_get_forum_post_type_supports', array(
    		'title',
    		'editor',
    		'revisions'
    	) );
    }
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar