Wordpress

WordPress

Secure WP login page ADD to htaccess to restrict access only from specific IP <Files wp-login.php> Order Deny,Allow Deny from all Allow from 107.150.23.152 </Files Enable gzip using htaccess <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts Read More

PDO Crud connect to separate DB

<code> //Set the host name to connect for database $config[“hostname”] =  “localhost”; //Set the database name $config[“database”] = “pdocrud”; //Set the username for database access $config[“username”] = “root”; //Set the pwd for the database user $config[“password”] = “”; //Set the Read More

PDO CRUD – shortlinks

[pdocrud table=”tablename” render=”crud”] [pc_func enqueuecss bootstrap_rtl=”https://cdnjs.cloudflare.com/ajax/libs/bootstrap-rtl/3.2.0-rc2/css/bootstrap-rtl.min.css”][/pc_func] [pc_func enqueuejs googlemap=”https://maps.googleapis.com/maps/api/js?key=AIzaSyAfp6Kg56vpI7GqJsDCTa577NnNDTnQiUw&callback=initMap”][/pc_func] [pc_func tablheadiing heading=”Some heading”][/pc_func] [pc_func tablesubheading sub_heading=”Some sub heading”][/pc_func] [pc_func fielddesc option_name=”some description”][/pc_func] [pc_func fieldtooltip option_name=”tooltip”][/pc_func] [pc_func fieldcssclass option_name=”class1,class2″][/pc_func] [pc_func coldataattr colname=”option_name” width=”500px”][/pc_func] [pc_func fieldattributes fieldname=”option_name” data-type=”email”][/pc_func] [pc_func dborderby orderbycols=”option_name desc”][/pc_func] Read More