As soon as you add this to functions.php, when you enter in adress bar and hit enter from www.example.com/login/ web browser goes to www.example.com/wp-login/ It may be more convenient way for developer, and, for example, may be useful to make links for different languages content in some cases.
How to add custom menu item ?
It is available to add anything you want, from tiny image to custom HTML elements in menu. You should define for which menu to add custom content. In this example, custom text is added to ‘main_menu’.
Set interval and the number of previous posts number autosave
Edit wp-config.php file to set time for autosaving posts, pages,.. and the number of post or pages previous versions – revisions.
How to enlarge an image on hover ?
You can adjust enlargement of image with a number of scaling in CSS.
WordPress page order numbers
It is better not to create pages order with single numbers, by creating triangular numbers: 111, 222, 333,… later would allow to insert pages with custom order place without problems.
Change ‘Add to cart’ text to custom text on a button, WooCommerce
Main WordPress database tables
wp_comments: contains all comments wp_links: contains added links and links data wp_options: the blog options wp_postmeta: metadata for the posts wp_posts: the actual posts wp_terms: categories and tags wp_term_relationships: associates categories and tags with posts wp_term_taxonomy: descriptions for categories and tags wp_usermeta: user metadata wp_users: the actual users
Create database table with Wordpres function
An example of creating a table in Mysql database with WordPress function.
Remove action or filter
In order to remove action or filter, you should use funtions : remove_action () or remove_filter () in your theme’s functions.php file Example: