I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?

Upgrade to PHP 5.2 or above The Error Message you see is by WordPress. It’s very misleading what it basically saying is, that you need a PHP version >= 5.2 for that feature to work. Please look into your operating systems documentation or contact technical support on how to update your PHP version. For CentOS, … Read more

Prevent /wp-admin/ from redirecting to homepage?

In my case, it ended up being some kind of adverse interaction in the nginx wordpress config that I had. Something about not passing along the naked arguments: location / { original line: try_files $uri @php; new line: try_files $uri $uri/ /index.php?$args; } And the associated upstream was wrong. Used the config suggested here: https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/ … Read more

Is it possible to add an item the Post Publish panel?

You can hook into ‘post_submitbox_misc_actions’ or ‘post_submitbox_start’: add_action( ‘post_submitbox_misc_actions’, ‘wpse_45720_submitdiv_extra’ ); add_action( ‘post_submitbox_start’, ‘wpse_45720_submitdiv_extra’ ); function wpse_45720_submitdiv_extra() { print ‘<pre>’ . current_filter() . ‘</pre>’; }

Show Welcome Panel on Dashboard for every user

This is how I solved it: In functions.php // Custom Dashboard function my_custom_dashboard() { $screen = get_current_screen(); if( $screen->base == ‘dashboard’ ) { include ‘admin/dashboard-panel.php’; } } add_action(‘admin_notices’, ‘my_custom_dashboard’); dashboard-panel.php <!– Hide Old Wrap with CSS –> <style type=”text/css”> div#wpcontent div.wrap { display: none; } div#wpcontent div.my-dashboard { display: block; } </style> <!– New Wrap … Read more

Why are my frontend theme styles bleeding into the backend?

You’re supposed to enqueue on the wp_enqueue_scripts event. Placing the function in functions.php and immediately running it, will make it run on all pages, including the admin area Here’s an example from the devhub: /** * Proper way to enqueue scripts and styles. */ function wpdocs_theme_name_scripts() { wp_enqueue_style( ‘style-name’, get_stylesheet_uri() ); wp_enqueue_script( ‘script-name’, get_template_directory_uri() . … Read more