Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // wp_headの前に追加
- // wp_deregister_script('jquery') をしていると表示されないので注意
- // 一応ログインしていないと表示しないようにする
- if (current_user_can('editor') || current_user_can('administrator')) {
- wp_enqueue_script( 'wp-api' );
- }
- ?>
- <?php wp_head(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement