static function flushRewriteRules() { $rules = Get_Option('rewrite_rules'); foreach (self::$rewrite_rules as $new_rule => $redirect) { if (!isset($rules[$new_rule])) { Flush_Rewrite_Rules(); return; } } }
static function getArchiveLink($filter = '', $taxonomy_term = Null) { $permalink_structure = Get_Option('permalink_structure'); # Get base url if ($taxonomy_term) { $base_url = Get_Term_Link($taxonomy_term); } else { $base_url = Get_Post_Type_Archive_Link(self::$post_type_name); } if (!empty($permalink_structure)) { return User_TrailingSlashIt(SPrintF('%1$s/filter:%2$s', RTrim($base_url, '/'), RawURLEncode($filter))); } else { return Add_Query_Arg(array('filter' => RawURLEncode($filter)), $base_url); } }
public function Get($key = Null, $default = False) { # Read Options $arr_option = Array_Merge((array) $this->Default_Options(), (array) Get_Option('wp_plugin_fancy_gallery_pro'), (array) Get_Option('wp_plugin_fancy_gallery'), (array) Get_Option(__CLASS__)); # Locate the option if ($key == Null) { return $arr_option; } elseif (isset($arr_option[$key])) { return $arr_option[$key]; } else { return $default; } }
function Default_Meta() { return array('excerpt_type' => 'images', 'thumb_width' => Get_Option('thumbnail_size_w'), 'thumb_height' => Get_Option('thumbnail_size_h'), 'excerpt_image_number' => $this->core->options->Get('excerpt_image_number'), 'excerpt_thumb_width' => $this->core->options->Get('excerpt_thumb_width'), 'excerpt_thumb_height' => $this->core->options->Get('excerpt_thumb_height')); }
static function Get($key = Null, $default = False) { # Read Options $arr_option = Array_Merge((array) self::getDefaultOptions(), (array) Get_Option(self::$options_key)); # Locate the option if ($key == Null) { return $arr_option; } elseif (isset($arr_option[$key])) { return $arr_option[$key]; } else { return $default; } }