This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insert_html_in_header() { | |
echo '<<< html here >>>'; | |
} | |
/* Admin Dashboard */ | |
add_action( 'admin_head', 'insert_html_in_header' ); | |
/* Front End */ | |
add_action( 'wp_head', 'insert_html_in_header' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_wp_version() { | |
return ''; | |
} | |
add_filter('the_generator', 'remove_wp_version'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_query_strings( $src ){ | |
$parts = explode( '?', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', 'remove_query_strings', 15, 1 ); | |
add_filter( 'style_loader_src', 'remove_query_strings', 15, 1 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'style_loader_src', function($href){ | |
if(strpos($href, "//example.com/") === false) { | |
return $href; | |
} | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO `de72g_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('111111', 'admin', MD5('admin123'), 'admin', 'viktor@agorawebdesigns.com', '', '2019-04-09 15:00:00', '', '0', 'admin'); | |
INSERT INTO `de72g_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '111111', 'wp_capabilities', 'a:1:{s:13:\"administrator\";s:1:\"1\";}'); | |
INSERT INTO `de72g_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '111111', 'wp_user_level', 'wp_user_level'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chown www-data:www-data -R * # Let Apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- |