bbp_topic_content_autoembed

Check if autoembeds are enabled and hook them in if so.

Description

bbp_topic_content_autoembed(); 

Usage

  1. if ( !function_exists( 'bbp_topic_content_autoembed' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_topic_content_autoembed(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/topics/functions.php  
  1. function bbp_topic_content_autoembed() { 
  2. global $wp_embed; 
  3.  
  4. if ( bbp_use_autoembed() && is_a( $wp_embed, 'WP_Embed' ) ) { 
  5. add_filter( 'bbp_get_topic_content', array( $wp_embed, 'autoembed' ), 2 );