Falcon::get_option PHP Method

get_option() public static method

public static get_option ( $key, $default = false )
    public static function get_option($key, $default = false)
    {
        if (self::is_network_mode()) {
            return get_site_option($key, $default);
        }
        return get_option($key, $default);
    }

Usage Example

Ejemplo n.º 1
0
 public static function parse_to($address)
 {
     $template = Falcon::get_option('bbsub_replyto');
     // No plus address in saved, parse via splitting
     $has_match = preg_match('/\\+(\\w+)-(\\d+)-(\\d+)-(\\w+)\\@.*/i', $address, $matches);
     if (!$has_match) {
         throw new Exception(__('Reply-to not formatted correctly', 'bbsub'));
     }
     return array($matches[1], $matches[2], $matches[3], $matches[4]);
 }
All Usage Examples Of Falcon::get_option