Why are admin scripts not printed

Use the admin_enqueue_scripts hook instead of admin_init Note: you should use hooks that target admin pages as specifically as possible. e.g.: Plugins: Use the admin_print_scripts-{plugin-page} hook Themes: Use the admin_print_scripts-{theme-page} hook (where {theme-page} is whatever string you use in the add_theme_page() call) Custom Post-Type Edit Page: Use the admin_print_scripts-edit.php hook, For Custom Post Types, inside … Read more

Is it possible to enqueue the Youtube API script or does it have to be inline?

First, make sure the YT api is enqueued() and added to the footer. function wp_enqueue_scripts__youtube_api() { wp_enqueue_script( ‘yt-player-api’, ‘http://www.youtube.com/player_api’, array(), false, true ); } add_action( ‘wp_enqueue_scripts’, ‘wp_enqueue_scripts__youtube_api’ ); Next, output your div somewhere on the page. <div id=”‘ . $postid . ‘player”></div> Then, hook into wp_footer and make sure you set the priority higher that … Read more

What does wp-list.js do?

This file is for list manipulations with jQuery: add, delete or dim list items. It was introduced in Ticket #4805 to replace some prototype code. Attached to the ticket is a sample plugin which holds the actual documentation. It doesn’t work really good … line 461 should be: $id = isset ( $_POST[‘id’] ) ? … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)