_bw_atdot() – Apply _atdot logic if required

You appear to be a bot. Output may be restricted

Description

Apply _atdot logic if required

Usage

$string = _bw_atdot( $email, $atts );

Parameters

$email
( string ) required – email address
$atts
( mixed ) required – array of parameters – possibly containing atdot=y or atdot=required email or at= and/or dot=

Returns

string the required result

Source

File name: oik/shortcodes/oik-email.php
Lines:

1 to 15 of 15
function _bw_atdot( $email, $atts ) {
  $atdot = bw_array_get( $atts, "atdot", false  );
  if ( $atdot ) { 
    if ( bw_validate_torf( $atdot ) ) {
      $email = _atdot( $email );
    } else {
      $email = $atdot; 
    }
  } else {
    $at = bw_array_get( $atts, "at", "@" );
    $dot = bw_array_get( $atts, "dot", "." );
    $email = _atdot( $email, $at, $dot ); 
  }
  return( $email );
}
 

 View on Trac