Hook into backbone to add js to wp-admin -> media library?

You can enqueue javascript files and css files like this for wp admin:- function load_custom_wp_admin_style() { wp_enqueue_script( ‘script-name’,’js/scripts.js’, array(‘jquery’), ‘3.3.5’, true ); } add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ ); First you need to enqueue admin scripts like below:- function my_admin_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); } function my_admin_styles() { wp_enqueue_style(‘thickbox’); } for uploading attachment:- $(‘.upload_image_button’).live(‘click’,function() { formfield = $(‘#upload_image’).attr(‘name’); … Read more

Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off

you can remove this functionality by adding this code in a plugin or theme remove_action( ‘template_redirect’, ‘wp_redirect_admin_locations’, 1000 ); This will remove all of dashboar, login, admin so if you will want some of them to still be there you will have to write your own replacement function to wp_redirect_admin_locations and hook it after you … Read more

Backend freezing on certain pages of a subsite

@BrettGoodrich I wish I had better advice for you based on the information you provided but it sounds like you might still be dealing with some underlying server configuration issues, perhaps something that you don’t even have control over since it’s shared hosting. When I encounter problems like this I like to try a fresh … Read more

I cannot access my WP website after changing settings

To get your site back Open wp-config.php – ( add these lines ) define(‘WP_HOME’,’www.therealdeal.org.uk/newsite’); define(‘WP_SITEURL’,’www.therealdeal.org.uk/newsite’); or to have it autmatically map to the right places define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] ); Load the admin or login pages a few times

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