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 | |
| /* | |
| Plugin Name: wordpress assist clean header | |
| Plugin URI: http://www.wordpressassist.nl/ | |
| Description: Remove shortlink hook | |
| Version: 1.0 | |
| Author: AukeJomm | |
| Author URI: http://www.aukejongbloed.nl | |
| */ | |
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
| <? | |
| /** | |
| * GTM data layer push for gravity forms contact form | |
| */ | |
| /** | |
| * Pushes a submission variables to the GTM dataLayer | |
| * Also pushes the event label for use in GTM tracking | |
| * @param Array $entry the data submitted with the form | |
| * @param Array $form Form data | |
| * @return null |
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
| # Install brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # Install composer | |
| brew install homebrew/php/composer | |
| ### PHPCS | |
| composer global require "squizlabs/php_codesniffer=*" | |
| # Add to your .bash_profile |
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 | |
| // NEWS!!! NEWS!!! **** FEBRUARY 2020 // | |
| // I rolled this code into a plugin! | |
| // Download plugin Lazy Load Background Images for Elementor. Link is in comments below. | |
| // Or go to https://james.revillini.com/projects/ | |
| // if you don't want another plugin, the code below works (last time I checked) | |
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
| /** | |
| * Preload any footer JS files in the header | |
| * | |
| * originally from: https://macarthur.me/posts/preloading-javascript-in-wordpress | |
| */ | |
| add_action('wp_head', function () { | |
| global $wp_scripts; |
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 | |
| /** | |
| * Base class for displaying a list of items in an ajaxified HTML table. | |
| * | |
| * @since 3.1.0 | |
| * @access private | |
| * | |
| * @package WordPress | |
| * @subpackage List_Table | |
| */ |
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 | |
| // Define a constant to use with html emails | |
| define("HTML_EMAIL_HEADERS", array('Content-Type: text/html; charset=UTF-8')); | |
| // @email - Email address of the reciever | |
| // @subject - Subject of the email | |
| // @heading - Heading to place inside of the woocommerce template | |
| // @message - Body content (can be HTML) | |
| function send_email_woocommerce_style($email, $subject, $heading, $message) { |
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
| # symlink to ~/.ssh/config | |
| Host github.com | |
| ControlMaster auto | |
| ControlPersist 120 | |
| Host * | |
| # Always use SSH2. | |
| Protocol 2 |
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 | |
| // Before VC Init | |
| add_action( 'vc_before_init', 'vc_before_init_actions' ); | |
| function vc_before_init_actions() { | |
| //.. Code from other Tutorials ..// | |
| // Require new custom Element |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |