hlashbrooke / WordPress-Plugin-Template

A robust code template for creating a standards-compliant WordPress plugin.
https://hughlashbrooke.com/
GNU General Public License v2.0
1.03k stars 329 forks source link

Settings #97

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi,

how to settings functions ? checkbox ?

$options = get_option( 'wpt_single_checkbox' ); if ( $options['checked'] == 'checked' ) { echo '<br><br><br><br>Checked'; } else { echo '<br><br><br><br>Unchecked'; }

Thanks a lot for help