WJ_Settings

Settings.

Defined (1)

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

/classes/WJ_Settings.php  
  1. class WJ_Settings { 
  2.  
  3. static private $db_prefix; 
  4. static private $name = 'wysija'; 
  5.  
  6. private function __construct() {} 
  7.  
  8. // db_prefix(); 
  9. // # => wp_wysija_ 
  10. // db_prefix('custom_field'); 
  11. // # => wp_wysija_custom_field 
  12. static function db_prefix($table_name = false) { 
  13. global $wpdb; 
  14. self::$db_prefix = $wpdb->prefix . self::$name . '_'; 
  15. if ($table_name) { 
  16. $prefixed = self::$db_prefix . $table_name; 
  17. } else { 
  18. $prefixed = self::$db_prefix; 
  19. return $prefixed; 
  20.