Boh, la funzione è richiamata quando si salva un articolo ed è questa, utilizzando sanitize_title ho risolto, in pratica è una funzione di wordpress che mi attacca le due parole divise dall'apostrofo...quindi non trovandolo + non mi dà + errore, però non capisco perchè me lo generi
Codice PHP:
function updateMetaData( $id ) {
global $GWP, $post;
//Reading the current meta data
$current = get_post_meta( $id, $GWP['MetaAdmin']['Name'] );
//Get the post content
$post_content = sanitize_title($_POST['post_title']);
//Generating keywords
$keywords = $this->generateKeywords( $post_content );
//Saving meta tags
$meta_exists=update_post_meta($id, $GWP['MetaAdmin']['Name'], $keywords);
if(!$meta_exists) {
add_post_meta($id, $GWP['MetaAdmin']['Name'], $keywords);
}
} // end func