bp_registration_options_set_content_type

Callback function for HTML email purposes.

Description

(string) bp_registration_options_set_content_type( (string) $content_type ); 

Returns (string)

$value new content type to use

Parameters (1)

0. $content_type (string)
The content type.

Usage

  1. if ( !function_exists( 'bp_registration_options_set_content_type' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/admin.php'; 
  3.  
  4. // The content type. 
  5. $content_type = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_registration_options_set_content_type($content_type); 
  9.  

Defined (1)

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

/includes/admin.php  
  1. function bp_registration_options_set_content_type( $content_type ) { 
  2. return 'text/html';