This file contains hidden or 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
| UPDATE wp_options SET option_value = replace(option_value, 'altedomain.de', 'neuedomain.de') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = replace(guid, 'altedomain.de','neuedomain.de'); | |
| UPDATE wp_posts SET post_content = replace(post_content, 'altedomain.de', 'neuedomain.de'); | |
| UPDATE wp_postmeta SET meta_value = replace(meta_value,'altedomain.de','neuedomain.de'); |
This file contains hidden or 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
| <?php | |
| add_filter( 'rest_endpoints', function( $endpoints ){ | |
| if ( isset( $endpoints['/wp/v2/users'] ) ) { | |
| unset( $endpoints['/wp/v2/users'] ); | |
| } | |
| if ( isset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] ) ) { | |
| unset( $endpoints['/wp/v2/users/(?P<id>[\d]+)'] ); | |
| } | |
| return $endpoints; | |
| }); |
This file contains hidden or 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
| <?php | |
| if (!is_admin()) { | |
| if (preg_match('/author=([0-9]*)/i', $_SERVER['QUERY_STRING'])){ | |
| die(); | |
| } | |
| add_filter('redirect_canonical', 'check_enum', 10, 2); | |
| } | |
| function check_enum($redirect, $request) { | |
| if (preg_match('/\?author=([0-9]*)(\/*)/i', $request)){ |
This file contains hidden or 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
| Header set Strict-Transport-Security "max-age=31536000" | |
| Header always append X-Frame-Options SAMEORIGIN | |
| Header set X-XSS-Protection "1; mode=block" | |
| Header set X-Content-Type-Options nosniff |
This file contains hidden or 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{QUERY_STRING} author=\d | |
| RewriteRule ^/? [L,R=301] | |
| </IfModule> |
This file contains hidden or 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
| $(document).ready(function(){ | |
| $maxHeight = Math.max.apply(null, $(".your-element").map(function () { return $(this).height(); }).get()); | |
| }) |
This file contains hidden or 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
| <?php | |
| // Version CSS file in a theme | |
| wp_enqueue_style( 'theme-styles', get_stylesheet_directory_uri() . '/style.css', array(), filemtime( get_stylesheet_directory() . '/style.css' ) ); | |
| // Version JS file in a theme | |
| wp_enqueue_script( 'theme-scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array(), filemtime( get_stylesheet_directory() . '/js/scripts.js' ) ); | |
| // Version CSS file in a plugin | |
| wp_enqueue_style( 'plugin-styles', plugin_dir_url( __FILE__ ) . 'assets/css/plugin-styles.css', array(), filemtime( plugin_dir_path( __FILE__ ) . 'assets/css/plugin-styles.css' ) ); | |
| // Version JS file in a plugin | |
| wp_enqueue_script( 'plugin-scripts', plugin_dir_url( __FILE__ ) . 'assets/js/plugin-scripts.js', array(), filemtime( plugin_dir_path( __FILE__ ) . 'assets/js/plugin-scripts.js' ) ) |
This file contains hidden or 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
| Compress JPEG & PNG images | |
| Clean Image Filenames | |
| P3 (Plugin Performance Profiler) | |
| Stop User Enumeration | |
| BackWPup | |
| Limit Login Attempts | |
| UpdraftPlus | |
| SubHeading | |
| Regenerate Thumbnails | |
| Duplicate Post |
This file contains hidden or 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
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or 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
| <?php | |
| function move_enqueued_scripts_into_head() { | |
| remove_action('wp_head', 'wp_print_scripts'); | |
| remove_action('wp_head', 'wp_print_head_scripts', 9); | |
| remove_action('wp_head', 'wp_enqueue_scripts', 1); | |
| add_action('wp_footer', 'wp_print_scripts', 5); | |
| add_action('wp_footer', 'wp_enqueue_scripts', 5); | |
| add_action('wp_footer', 'wp_print_head_scripts', 5); | |
| } |
NewerOlder