Can log as admin but dashboard missing [closed]

I’d first make sure that the wp-options table has your new URL – in both places. Then I would look at the error log to see what error is causing the ‘almost-white-screen-of-death’. That will provide you with a direction to start. “White screens of death” are almost always caused by a fatal PHP error. Make … Read more

Develop Admin Panel Page

WP_List_Table class is used to generate the List Tables that populate WordPress’ various admin screens. It has an advantage over previous implementations in that it can be dynamically altered with AJAX and may be hooked in future WordPress releases. If you want to use this class pay attention to this warning by WordPress. This class’s … Read more

Can’t access wp-admin, redirects to http://%24domain/wp-admin/

first of all you shouldnt delete .htaccess file. create another one in the root directory and add following lines to it: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress then go to wp-config.php and add these … Read more

WordPress custom post type capabilities issue

You definitely need to set map_meta_cap to true instead of false to create custom capabilities. I haven’t seen the ‘capability_type’ => [‘note’,’notes’] way of creating capabilities before – maybe it’s shorthand, but if just changing map_meta_cap doesn’t work, you might want to spell everything out the long way: <?php $args = array( ‘labels’ => $labels, … Read more

400 Bad Request, in wordpress theme development, wp_ajax

The problem is that, you have added extra white space before wp_ajax action. remove space from actions ‘ wp_ajax_my_action’ and ‘ wp_ajax_nopriv_my_action’. because of extra space before ajax request, showing the 400 bad request error. You should use : add_action(‘wp_ajax_my_action’, ‘my_action’); add_action(‘wp_ajax_nopriv_my_action’, ‘my_action’);

Plugin settings won’t save changes

— You made a little mistake in code , I resolve this Error in the code So put this code — function sswc_register_settings() { register_setting(‘sswc_options_group’, ‘sswc_color_option’); register_setting(‘sswc_options_group’, ‘sswc_top_option’); register_setting(‘sswc_options_group’, ‘sswc_left_option’); } add_action(‘admin_menu’, ‘sswc_register_settings_page’); function sswc_register_settings_page() { add_options_page(‘Social Sharing with Claps’, ‘SSWC Settings’, ‘manage_options’, ‘sswc’, ‘sswc_options_page’); add_action(‘admin_init’, ‘sswc_register_settings’); } //Content for settings page will go here … Read more

Adding Product Name on Admin Panel Order list and User’s My-Account Order List

Add this code to your functions.php this will add an extra column to the listing table with Product name. Like 1 x Netflix Premium. If multiple that will be visible too. add_filter(‘manage_edit-shop_order_columns’, ‘_order_items_column’ ); function _order_items_column( $order_columns ) { $order_columns[‘order_products’] = “Product Name”; return $order_columns; } add_action( ‘manage_shop_order_posts_custom_column’ , ‘_order_items_column_cnt’ ); function _order_items_column_cnt( $colname ) … Read more