rtmedia_check_comment_media_allow

Is comment allow in Commented Media.

Description

rtmedia_check_comment_media_allow(); 

Usage

  1. if ( !function_exists( 'rtmedia_check_comment_media_allow' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/main/controllers/template/rtmedia-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = rtmedia_check_comment_media_allow(); 
  7.  

Defined (1)

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

/app/main/controllers/template/rtmedia-functions.php  
  1. function rtmedia_check_comment_media_allow() { 
  2. $value = false; 
  3. global $rtmedia; 
  4. /** variable */ 
  5. if ( ( isset( $rtmedia->options ) && isset( $rtmedia->options['buddypress_enableOnComment'] ) && 1 == $rtmedia->options['buddypress_enableOnComment'] ) || ! isset( $rtmedia->options['buddypress_enableOnComment'] ) ) { 
  6. $value = true; 
  7. return $value;