如果不阻止代码,我无法找到正确插入wp\\u nonce字段的方法。下面的代码来自一个类函数,该函数发回字符串,字符串将被回显。
$end_data .= \'<input type="text" class="ss_title_form_ajax_\' . $this->id . \'" limit="133" value="\' . $this->native_title . \'" size = "60" placeholder=""/>\';
$end_data .= \'<span class="ss_title_form_ajax_\' . $this->id . \'"></span>\';
$end_data .= \'<span id="ShowMe_\' . $this->id . \'">\' . ( 60 - strlen( $this->native_title ) ) . \'</span>\';
//-------------------------
foreach ( $this->have_results as $keywords_rf ) {
$end_data .= \'<span class="user_select_rf" data-role="\' . $this->id . \'">\' . $keywords_rf . \' </span>\';
}
//-------------------------
return $end_data . \'</form>\';
在这些情况下,如何添加wp\\u nonce?