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
| <!-- HTML --> | |
| <table> | |
| <tr> | |
| <td>Cell 1</td> | |
| <td>Cell 2</td> | |
| <td>Cell 3</td> | |
| </tr> | |
| <tr> | |
| <td>Cell 4</td> | |
| <td>Cell 5</td> |
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
| <!DOCTYPE html> | |
| <!-- SCROLLABLE OVERLAY --> | |
| <html> | |
| <head> | |
| <style> | |
| .overlay { | |
| height: 0%; | |
| width: 100%; | |
| position: fixed; | |
| z-index: 1; |
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
| ########################################################################################################## | |
| # Ignore some shit | |
| # | |
| ########################################################################################################## | |
| .DS_Store | |
| **/.DS_Store | |
| # A leading "**" followed by a slash means match in all directories. |
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
| # Generating a custom SSH Key | |
| ssh-keygen -t rsa -f ~/.ssh/id_rsa_custom_shit | |
| # Copying the custom shit SSH key to your Download directory | |
| cp id_rsa_liquid.pub /Users/user/Downloads/id_rsa_custom_shit.pub | |
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
| <div class="footer-social-icons"> | |
| <h4 class="_14">Follow us on</h4> | |
| <ul class="social-icons"> | |
| <li><a href="" class="social-icon"> <i class="fa fa-facebook"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-twitter"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-rss"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-youtube"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-linkedin"></i></a></li> | |
| <li><a href="" class="social-icon"> <i class="fa fa-google-plus"></i></a></li> | |
| </ul> |
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(!function_exists('wc_get_products')) { | |
| return; | |
| } | |
| $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; | |
| $ordering = WC()->query->get_catalog_ordering_args(); | |
| $ordering['orderby'] = array_shift(explode(' ', $ordering['orderby'])); | |
| $ordering['orderby'] = stristr($ordering['orderby'], 'price') ? 'meta_value_num' : $ordering['orderby']; |
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
| <form role="search" method="post" class="search-form padding-4" action="<?php echo home_url( '/' ); ?>"> | |
| <label> | |
| <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
| <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search...', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
| <input class="post_type" type="hidden" name="post_type" value="frequent" /> | |
| </label> | |
| <input type="submit" class="search-submit button brand" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
| </form> | |
| <script type="text/javascript"> |
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 | |
| //Import the PHPMailer class into the global namespace | |
| use PHPMailer\PHPMailer\PHPMailer; //important, on php files with more php stuff move it to the top | |
| use PHPMailer\PHPMailer\SMTP; //important, on php files with more php stuff move it to the top | |
| //SMTP needs accurate times, and the PHP time zone MUST be set | |
| //This should be done in your php.ini, but this is how to do it if you don't have access to that | |
| date_default_timezone_set('Etc/UTC'); | |
| require 'path/to/vendor/autoload.php'; //important |
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 custom_user_role() { | |
| // get user | |
| $user = new WP_User( <user-ID> ); | |
| //$user = new WP_User( '<user-login-name>' ); | |
| //$user = wp_get_current_user(); | |
| // modify roles | |
| // for example, set/unset them as administrator | |
| $user->add_role( 'administrator' ); |
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 | |
| /** | |
| * Page slug body class | |
| * https://www.wpbeginner.com/wp-themes/how-to-add-page-slug-in-body-class-of-your-wordpress-themes/ | |
| * | |
| */ | |
| function add_slug_body_class( $classes ) { | |
| global $post; | |
| if ( isset( $post ) ) { |