In this example, We have shared how to add security key in WordPress? You don’t have to remember the keys, just make them long, random and complicated — or better yet, use the online generator. You can change these at any point in time to invalidate all existing cookies.
Open the wp-config.php file from Root directory your site and the following PHP code before
1 2 3 4 5 6 7 8 |
define('AUTH_KEY', 'H-L,iKU/GS43~g^^@+`2`[@56)wP-Z&?E7hcIh+n]zjN.,64^cG8;[email protected](f:Oeq-Q'); define('SECURE_AUTH_KEY', 'B(F!P?u210}` tO3+-9c22chWD2r:|iULXC+GW)-=m2{hb<sxQ31=k/^V12t)rk*'); define('LOGGED_IN_KEY', 'DsYiFYqA-L}&kwGIS3K_+F*kVm$IRMSL8_sT1m7]P49W]tX<L }zYH3v3{|q_t}c'); define('NONCE_KEY', 'Rf7c{v62iVS-6:K&i#W+iF$`;>?}R2_%i<ngev*7lPC0=i|}iZ:f^=Q`4]Hn</?-'); define('SECURE_AUTH_SALT', 'bQyc=BSnIU+,|V.v9(V(+-f=7,G|yi|F5pd*wr9N>b`bjJ(-+qvmUv/[email protected]&pst%'); define('LOGGED_IN_SALT', 'rTAY!*EdZN-)A[yi0rp55?9=ju%4 kewE>myR|}3jRNUS,]NB&eW3-rV,?n9J8.k'); define('NONCE_SALT', '+~1[5),YMFZt|Z+7omp{rhJH&V~})>9H~>LMB+H9%Uj|-%,$Y7e_Ji8EvEdvJ1Qr'); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.