How do I customize my wordpress Admin Area?

You can remove dashboard widgets/metaboxes using the following action, wp_dashboard_setup: Example 1 function remove_dashboard_widgets() { global $wp_meta_boxes; $wp_meta_boxes[‘dashboard’][‘normal’][‘core’] = array(); $wp_meta_boxes[‘dashboard’][‘side’][‘core’] = array(); } add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’, 100); Also there is the more specific core function, remove_meta_box() which can be used in the same way: Example 2 function remove_dashboard_widgets() { remove_meta_box( ‘dashboard_right_now’, ‘dashboard’, ‘normal’); remove_meta_box( ‘dashboard_activity’, … Read more

How to append to title via functions.php for auto-posting plugin [duplicate]

Whoa, this Plugin was a nightmare to look through. But I got a solution for you. In the description for your links, you can use the placeholder %FULLTITLE% instead of %TITLE%. %FULLTITLE% applies the filters for the title. From nxs_functions_adv.php Lines 19 & 20: if (preg_match(‘/%TITLE%/’, $msg)) { $title = nxs_doQTrans($post->post_title, $lng); $msg = str_ireplace(“%TITLE%”, … Read more

functions.php How to add css/js depending on Template Name?

You can use wp_enqueue_style() before running get_header() in your blue.php file. If you’re looking for a way to do that inside your functions.php file, then the init hook is a bit too early for is_page_template(). Try the wp_enqueue_scripts hook instead: add_action( ‘wp_enqueue_scripts’, ‘load_my_theme_files’ ); function load_my_theme_files() { if ( is_page_template( ‘blue.php’ ) ) { wp_enqueue_style( … Read more

async javascript and css for wordpress

You would use the handle of your enqueued scripts, ie, the first parameter of the wp_enqueue_script function used in WordPress for all your scripts… (if you are loading them another way you should use this function instead.) The handle for jQuery is… jquery actually jquery-core now. But each script queued will have it’s own handle. … Read more

wp_register_script(… $in_footer = true) not working

Choose the right place in (rendering-)time First off, you are hooking at init, while you want to add your callback on wp_enqueue_script. Example: add_action( ‘wp_enqueue_script’, function() { wp_deregister_script( ‘jquery’ ); // Rest of logic } ); Staying up to date with core Also, you might want to use the correct version that core uses. I know, … Read more