Io vorrei mostrare il contenuto di $current dove è richiamata la funzione, ma anche provando a ritornare una stringa non mi visualizza niente...come mai ?
Codice PHP:
function updatersslink() {
global $post;
preg_match('#Originally link <a href="(.*)">#', $post->post_content, $rect);
$current = get_post_meta($post->ID, 'rsslink');
if (!isset($current) || (sizeof($current)==0)) {
add_post_meta($post->ID, 'rsslink', $rect[1]);
}
else {
update_post_meta($post->ID, 'rsslink', $rect[1]);
}
}
return 'sda79fa7fdfa95taf' ;
?>{