0
내 플러그인 형태 코드 : 내가 사용하는 템플릿 파일 내에서 전화를 시도하는 데 문제가
function pp_settings_page() {
$pp_options = get_option('pp_options');
?>
<div class="wrap">
<h2>Post Products Settings</h2>
<form action="options.php" method="post">
<?php settings_fields('pp_options_group'); ?>
<table class="form-table">
<tr valign="top">
<th scope="row">Currency sign: </th>
<td><input type="text" name="pp_options[currency_sign]" value="<?php echo $pp_options['currency_sign']; ?>" /></td>
</tr>
</table>
<p class="submit">
<input type="submit" class="button-primary" value="Save changes" />
</p>
</form>
</div>
<?php
}
:
<?php $pp_options=get_option('pp_options');?>
및
<?php get_option('pp_options');?>
무엇 내가 빠졌어?