2012年12月5日

wp plugin -19

摘要: THE SETTINGS APIThe Settings API enables you to handle the simple tasks:Tell WordPress that you are going to use some new options and how you want themdisplayed.Specify a function that will sanitize user inputs.And let WordPress transparently manage for you the cumbersome and repetitive parts:Draw m 阅读全文

posted @ 2012-12-05 18:46 kalintw 阅读(135) 评论(0) 推荐(0)

wp plugin -18

摘要: wp_options tableSaving Optionsadd_option( ‘boj_myplugin_color’, ‘red’ );update_option( ‘boj_myplugin_color’, ‘blue’ );Saving an Array of Options< ?php$options = array(‘color’ = > ‘red’,‘fontsize’ = > ‘120%’,‘border’ = > ‘2px solid red’);update_option( ‘boj_myplugin_options’, $options );? 阅读全文

posted @ 2012-12-05 10:17 kalintw 阅读(96) 评论(0) 推荐(0)

导航