Hooks: admin_footer and admin_print_footer_scripts not working?

As per WordPress Codex its best to register and queue your scripts with the hook dedicated for them, even if you want your script to be added to footer. So the correct way of doing it will be: function jupload_scripts() { wp_enqueue_script( ‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js’, array(‘jquery’), ‘1.8.6’, true ); } add_action( ‘admin_print_scripts’, ‘jupload_scripts’ );

Disable or lock parent pages from being edited in wordpress admin

Yes there is. Save this code as plugin and activate one. Plugin will lock all pages that has children from edit. <?php /* Plugin Name: Lock parent pages form edit Plugin URI: Description: Version: 0.1 Author: Alexey Selin <[email protected]> Author URI: http://wordpress.stackexchange.com/users/7314/alexey */ function lock_parent_pages_from_edit( $capauser, $capask, $param){ global $wpdb; $post = get_post( $param[2] ); … Read more

Migrated wordpress site give “Undefined variable: php” warnings

Notices won’t trigger a server 500 error. However, “fatal errors” will. From your logs above: Fatal error: Class ‘Memcache’ not found in /var/www/wordpress/wp-content/plugins/flexicache/FlexiCache/Store/Memcache.php on line 63 This means you’re running a plugin that depends on Memcache and your local system doesn’t have Memcache support. Disable or remove the FlexiCache plugin, or install Memcache. One other … Read more

How to disable categories/most used in ‘add new post’?

remove_meta_box removes the whole Categories box. The Most used tab don’t have any hook. Don’t modify WordPress core files, there’s always a way to modify WP behavior without touching the core. /** * Place the script in the theme’s functions.php file */ add_action( ‘admin_head-post-new.php’, ‘wpse_70874_hide_most_used_cats’ ); add_action( ‘admin_head-post.php’, ‘wpse_70874_hide_most_used_cats’ ); function wpse_70874_hide_most_used_cats() { // This … Read more

Is WordPress Suitable for my site?

This is probably mostly a preference thing, but I don’t think WordPress is a great solution for sites outside of content creation. In my opinion, one of the weakest parts of WordPress is how they handle images and galleries. We are building a completely custom interface for creating galleries on our application because it’s so … Read more

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