add_options_page('Auto Tag Links', 'Auto Tag Links', 'manage_options', __FILE__, 'atl_options');
add_options_page('Auto Tag Links', 'Auto Tag Links', 'manage_options', __FILE__, 'atl_options');
public static function tag_to_link($content){
$tags = get_tags();
foreach ($tags as $tag):
if((get_option(self::tagposts_on) and is_single()) or (get_option(self::tagpages_on) and is_page())):
$content = preg_replace('/ '.$tag->name.' /', ' '.$tag->name.' ', $content);
endif;
endforeach;
return $content;
}
public static function pr_callback(){
self::$i ++;
return ' '.self::$taglinker_tagname.' ';
}
public static function load_textdomain(){
load_plugin_textdomain( 'tag-linker', false, dirname(plugin_basename(__FILE__)));
}
public static function tag_to_link($content){
$tags = get_tags();
foreach ($tags as $tag):
if((get_option(self::tagposts_on) and is_single()) or (get_option(self::tagpages_on) and is_page())):
$content = preg_replace('/ '.$tag->name.' /', ' '.$tag->name.' ', $content);
endif;
endforeach;
return $content;
}
public static function pr_callback(){
self::$i ++;
return ' '.self::$taglinker_tagname.' ';
}
public static function load_textdomain(){
load_plugin_textdomain( 'tag-linker', false, dirname(plugin_basename(__FILE__)));
}
Belediye
Belediye
$content = preg_replace('/ '.$tag->name.' /', ' '.$tag->name.' ', $content);
Belediye
Belediye
$content = preg_replace('/ '.$tag->name.' /', ' '.$tag->name.' ', $content);