add_rewrite_rule() allows you to specify additional rewrite rules for WordPress. It is most commonly used in conjunction with add_rewrite_tag() (which allows WordPress to recognize custom post/get variables). Basic Usage You can retrieve any page by specifying ID in URL as following: http://example.com/?p=95 If ...
Developers Map
Discy Latest Questions
There are a few functions to help you out with WordPress specific globals: dump_wp_query() dump_wp() dump_post()
The $wpdb object has some properties getting set for that: global $wpdb; // Print last SQL query string $wpdb->last_query // Print last SQL query result $wpdb->last_result // Print last SQL query Error $wpdb->last_error
If you got error while opening wp-admin Warning: ini_get_all() has been disabled for security reasons in /../wp-includes/load.php on line 1031 Warning: ini_get_all() has been disabled for security reasons in /…/wp-includes/load.php on line 1031 Warning: Cannot modify header information – headers already sent ...
If you have only a database backup to recover your wordpress website, Just follow the below steps STEP-1 : Create a database and import the database backup into it. STEP-2 : Install wordpress and enter the new database details ...
To make a secure wordpress website Please go through these points, remember it is not mandatory that you follow all points. The more points you cover make your website more secure. 1. Change the login page URL :- As all ...
Step-1: create a folder say “example-plugin” in wp-content/plugins/ Step-2: create a file index.php in in “example-plugin” folder Step-3: Now, we are creating a simple plugin that makes a shortcode [developersmap.com] Add the below code into your index.php /* Plugin Name: Example ...
First let’s see how we can register menus in WordPress. Check out the code below. register_nav_menus( array( ‘top’ => __( ‘MyAccount Menu’, ‘wocommerce’ ), ) ); ‘top’ is location
In WordPress, all sub-menus have the class ‘sub-menu’. To change it to a custom class, add the following code in your functions.php file. function change_submenu_class($menu) { $menu = preg_replace('/ class="sub-menu"/','/ class="myclass" /',$menu); return $menu; ...
Step:- 1 : Go to http://www.themelock.com/ Step:- 2 : Search for the theme you want Step:- 3 :- Click on the selected theme title and open the detail page Step:- 4 :- On theme detail page you will get multiple download ...