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
| your-domain.de/wp-admin/admin.php?page=jetpack_modules |
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
| var data = {}; | |
| data['test'] = 'test'; | |
| var response = $.ajax({ | |
| url : ajax_url, | |
| data : data | |
| }); | |
| response.always(function() { | |
| $.getScript('file.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
| UPDATE `wp_posts` SET post_content = REPLACE(post_content, 'https://', 'http://') WHERE post_content LIKE '%http://%'; | |
| UPDATE `wp_postmeta` SET `meta_value` = REPLACE(meta_value, 'https://', 'http://') WHERE meta_value LIKE '%http://%'; | |
| UPDATE `wp_options` SET `option_value` = REPLACE(option_value, 'https://', 'http://') WHERE option_value LIKE '%http://%'; |
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
| <label class="kevin-color"> | |
| <input type="text" name="kevin_color" value="" /> | |
| <input type="color" name="kevin_color" value="" /> | |
| </label> | |
| <script> | |
| jQuery('.kevin-color input[type="color"]').on( 'change', function() { | |
| var ValColor = jQuery(this).val(); | |
| jQuery('.kevin-color').find('input[type="text"]').val(ValColor); | |
| }); |
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 | |
| /** | |
| * Simple Addon to showing posts by category in sidebars | |
| */ | |
| // Creating the widget | |
| class jl_categories extends WP_Widget | |
| { | |
| function __construct() |
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 | |
| /** | |
| * WordPress.org Plugin API | |
| */ | |
| // Plugin Slug | |
| $slug = 'simple-marketplace-affiliate'; | |
| $args = (object) array( 'slug' => $slug ); | |
| $fields = array( 'action' => 'plugin_information', 'timeout' => 15, 'request' => serialize( $args ) ); |
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 | |
| // functions.php | |
| add_theme_support( 'post-formats', array( 'video', 'gallery' ) ); | |
| // single.php | |
| // Innerhalb des WordPress Loops | |
| if( get_post_format() == 'video' ) : |
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 | |
| /** | |
| * WordPress Optimizing | |
| */ | |
| // Remove Query String from Static Resources | |
| function remove_cssjs_ver( $src ) { | |
| if( strpos( $src, '?ver=' ) ) | |
| $src = remove_query_arg( 'ver', $src ); | |
| return $src; |
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() { | |
| var base = 'div'; // Change it to your element | |
| $(base).each(function() { | |
| var target = $(this); | |
| var bgcolor = target.css('background-color'); | |
| var rgb = bgcolor.replace('rgb(', '').replace(')', '').split(','); |