do_shortcode() within Admin Page

Instead of calling do_shortcode() just call the function associated with the shortcode. Example There is a shortcode named [example] and a function registered as shortcode handler: function example_shortcode( $atts = array(), $content=”” ) { extract( shortcode_atts( array ( ‘before’ => ”, ‘after’ => ”, ), $atts ) ); return $before . $content . $after; } … Read more

Redirect WordPress login for customers but not admin

After a bit of thinking, I came up with a solution that allows wp-login.php to be redirected for the public/customers, but not for the admin. I did this by getting the referrer URL. Here is my updated code, but I’m open to other ideas. //Redirect for login from wp-login.php to my-account if not admin add_action(‘init’, … Read more

Remove “Filter” Button on All Posts in wp-admin

There isn’t a filter or an action in order to prevent this BUT WordPress adds the post-type slug of the current page post type to the classes in body tag. Also the slug of the page, in your case .edit-php If you want to do it with css (replace {your_post_type} with your post type) body.post-type-{your_post_type}.edit-php … Read more

Slow WP loading due to persistent version check, how to disable?

After searching around, found plugin: Disable WordPress Updates is one of the effective & easy solutions, which also included disable version check to contact https://api.wordpress.com/. PS: really hope WP could include this option for users as well. If there any insightful and explanatory solution, I still prefer to hear, please suggest. (PS: seems WP@SE is … Read more

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