bp_email_get_salt

Get a persistent salt for email unsubscribe links.

Description

(string|null) bp_email_get_salt(); 

Returns (string|null)

Returns null if value isn't set, otherwise string.


Usage

  1. if ( !function_exists( 'bp_email_get_salt' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_email_get_salt(); 
  7.  

Defined (1)

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

/bp-core/bp-core-functions.php  
  1. function bp_email_get_salt() { 
  2. return bp_get_option( 'bp-emails-unsubscribe-salt', null );