Editing the term_order field

Did it yourself. If someone needs: // Adding a field to sort on the category edit page add_action( ‘product_cat_edit_form_fields’, ‘product_cat_edit_category’, 5 ); function product_cat_edit_category( $term ) { $term_order = get_term( $term->term_id, ‘product_cat’ ); ?> <tr> <th scope=”row”><label for=”description”>Сортировка</label></th> <td><input type=”text” name=”term_order” value=”<?php echo $term_order->term_order; ?>”></td> </tr> <?php } // Update term_order value when saving taxonomy … Read more

How do I delete a wordpress user from giant database?

Using WP CLI, you can easily delete users without concerns about loading the WordPress UI. wp user delete is the command you’re looking for. In your case, use wp user delete 123 –reassign=567 for deleting a user by ID and reassigning to another user.

WordPress – add help text under category list(right side) in post edit page

There is not available action and filter hook to modify of taxonomy meta boxes html like admin_post_thumbnail_html. so here is a trick to add descrition below category.you have to create new metabox for help then move to category div. # Add new meta box for help description add_action( ‘add_meta_boxes’, ‘add_help_desc_meta_box’, 0 ); function add_help_desc_meta_box() { … Read more

Unable to access admin web page

I solved this by following the instructions here; http://www.beyondmyfrontdoor.com/wp/how-to-fix-wordpress-reporting-the-wrong-php-version/ I turned out that the .htaccess file was loading an old version of php as follows; # Use PHP55 AddHandler application/x-httpd-php55 .php <IfModule mod_suphp.c> suPHP_ConfigPath /opt/php55/lib </IfModule> I commented this out and it now allows me access to the admin web page again.