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.

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