摘要: WP程序API接口常用短代码分享几个常用的短代码:1 展示Google adsense广告 function cwp_showads() { return ' '; } add_shortcode('cwp_adsense', 'cwp_showads'); 4.2 私密注释 function cwp_note( $atts, $content = null ) { if ( current_user_can( 'publish_posts' ) )//这里设置的是编辑及以上级别,你可以设置为更高级别 return '&# 阅读全文
posted @ 2014-03-12 10:43 lanhe 阅读(488) 评论(0) 推荐(0) 编辑
数据中心