Hardening WP
MD5 Generator
https://www.md5hashgenerator.com/
.htaccess
https://wordpress.org/support/article/brute-force-attacks/#limit-access-to-wp-login-php-by-ip
https://www.md5hashgenerator.com/
https://wordpress.org/support/article/brute-force-attacks/#limit-access-to-wp-login-php-by-ip
<?php | |
// Shortcodes | |
// sitebuilderone.com | |
// https://codex.wordpress.org/Shortcode_API | |
// Shortcodes are supposed to return your html, not echo it. | |
// types: https://speckyboy.com/getting-started-with-wordpress-shortcodes-examples/ | |
function sb1_current_mo_yr() { | |
wp core download
https://www.hongkiat.com/blog/wordpress-custom-upload-dir/
// https://www.hongkiat.com/blog/wordpress-custom-upload-dir/
django_commands.md | |
#django version - on MAC using version 3 | |
python3 -m django --version | |
#Create a project | |
django-admin.py startproject antonblog | |
# run project | |
python3 manage.py runserver |
/* https://stackoverflow.com/questions/49547/how-to-control-web-page-caching-across-all-browsers */
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
// display category terms for CPT3 | |
$terms = get_the_terms( $post->ID , 'website_tools_category' ); | |
foreach ( $terms as $term ) { | |
$term_link = get_term_link( $term, 'website_tools_category' ); | |
if( is_wp_error( $term_link ) ) | |
continue; | |
echo '<a href="' . $term_link . '">' . $term->name . '</a>'; | |
} | |
/* | |
SiteBuilderOne WHMCS Customization | |
templates>six>css>custom.css | |
*/ | |
@import "https://fonts.googleapis.com/css?family=Oxygen"; |
/* | |
SiteBuilderOne WHMCS Customization | |
modern>style.css | |
*/ | |
#order-modern .product .description { | |
font-size:1.2em; | |
margin:10px 30px 10px 10px; | |
} |
add_action( 'init', function () { | |
$username = 'admin'; | |
$password = 'password'; | |
$email_address = 'webmaster@mydomain.com'; | |
if ( ! username_exists( $username ) ) { | |
$user_id = wp_create_user( $username, $password, $email_address ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} |
<?php | |
/** | |
* Custom WordPress configurations on "wp-config.php" file. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more. | |
* For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page. | |
* Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com. | |
* | |
* @package WordPress | |
* @generator GenerateWP.com |