bp_use_embed_in_forum_posts

  • apply_filters( 'bp_use_embed_in_forum_posts', !defined( 'BP_EMBED_DISABLE_FORUM_POSTS' ) || !BP_EMBED_DISABLE_FORUM_POSTS )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 1331
      }
      
      /**
       * Are oembeds allowed in forum posts?
       *
       * @return bool False when form post embed support is disabled; true when enabled (default)
       * @since 1.5
       */
      function bp_use_embed_in_forum_posts() {
      	return apply_filters( 'bp_use_embed_in_forum_posts', !defined( 'BP_EMBED_DISABLE_FORUM_POSTS' ) || !BP_EMBED_DISABLE_FORUM_POSTS );
      }
      
      /**
       * Are oembeds allowed in private messages?
       *
       * @return bool False when form post embed support is disabled; true when enabled (default)
       * @since 1.5
       */
      function bp_use_embed_in_private_messages() {
      	return apply_filters( 'bp_use_embed_in_private_messages', !defined( 'BP_EMBED_DISABLE_PRIVATE_MESSAGES' ) || !BP_EMBED_DISABLE_PRIVATE_MESSAGES );
      

Comments are closed.