How to view all posts of current day as default in admin

You can try this modification to your code snippet: function add_post_format_filter_to_posts( $query ) { global $post_type, $pagenow; // if we are currently on the edit screen of the post type listings if ( is_admin() && $pagenow == ‘edit.php’ && $post_type == ‘shop_order’ && ! filter_input( INPUT_GET, ‘filter_action’ ) // <– We add this check && … Read more

how to stop wordpress admin menu from scrolling with page

The simplest solution I have for this, is in my themes function, or in a custom plugin file (if you have plugins you are working with) add this code: add_action( ‘admin_head’, ‘kaz_stop_sidescroll’ ); function kaz_stop_sidescroll(){ ?> <style type=”text/css”> #adminmenuwrap {position: relative!important;} </style> <?php } This will only add the styles to the admin area head … Read more

How to change the descriptive text on the menus admin page?

The text you are referring to is located in here: wp-admin/nav-menus.php. But we will not edit directly. We will use functions.php for the convenience of preserving the changes after an upgrade. Use the following code in functions.php add_filter( ‘gettext’, ‘wps_translate_words_array’ ); add_filter( ‘ngettext’, ‘wps_translate_words_array’ ); function wps_translate_words_array( $translated ) { $words = array( // ‘word … Read more

Create new user from phpMyAdmin

Edit the user in phpmyadmin, enter the password as text in the user_pass field and there is a “Function” column with drop down boxes. On this field just select MD5 in the function column. When you save it phpMyAdmin will automatically md5 hash it for you.

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