我想重写$title = get_bloginfo();
使用-->$title = get_bloginfo(\'siteurl\');
插件中的一些代码“Really simple Facebook Twitter share buttons“:
function really_simple_share ($content, $filter, $link=\'\', $title=\'\', $author=\'\') {
static $last_execution = \'\';
...
$custom_field_disable = get_post_custom_values(\'really_simple_share_disable\');
if ($custom_field_disable[0]==\'yes\' and $filter!=\'shortcode\') {
return $content;
}
//GET ARRAY OF STORED VALUES
global $really_simple_share_option;
$option = $really_simple_share_option;
...
$first_shown = false; // NO PADDING FOR THE FIRST BUTTON
// IF LINK AND TITLE ARE NOT SET, USE DEFAULT FUNCTIONS
if ($link==\'\' and $title==\'\') {
$link = ($option[\'use_shortlink\']) ? wp_get_shortlink() : get_permalink();
$title = get_bloginfo(); // OVERRIDE
$author = get_the_author_meta(\'nickname\');
}
我可以在我的函数中执行此操作吗。php,因为我将在每次更新后更新此插件,而不更改此行。谢谢