0
내 플러그인의 관리 페이지에서 관리자가 사용자 지정할 수있는 몇 가지 옵션이 있습니다.html로 Wordpress 저장 옵션
나는이 양식을 사용 옵션이 자동으로 저장됩니다 :
<form method="post" action="options.php">
을하지만 난이 텍스트 영역에서 일부 HTML 코드를 입력하면 그것은 잘 작동하지만 워드 프레스는 옵션의 끝에서 일부 문자를 추가
" />
데이터베이스에 현재 옵션이 있습니다.
options.php를 변경하지 않으려면 어떻게해야합니까? 내 모든 변경 사항은 플러그인 폴더에 있어야합니다.
편집
실제 코드 : 당신의 도움이
MrKalten에 대한
<form method="post" action="options.php">
<?php settings_fields('bm-settings-group'); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">Liste des métiers : </th>
<td><textarea name="bm_metiers" style="width:300px;height:200px;">
<?php echo get_option('bm_metiers'); ?>
</textarea>
</td>
</tr>
</table>
<p class="submit" align="right">
<input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
</p>
감사