View functions.php
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
<?php ~> don't add me / this function calls the script.js | |
add_filter( 'wp_grid_builder/frontend/register_scripts', 'prefix_register_script' ); | |
//gridbuilder external js script | |
function prefix_register_script( $scripts ) { | |
$scripts[] = [ | |
'handle' => 'global', | |
'source' => '/wp-content/themes/mytheme/js/script.js', |
View runcloud-beaver-buster.php
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
<?php | |
/** | |
* Plugin Name: Runcloud BeaverCache Purge Helper | |
* Plugin URI: https://gist.github.com/neilgee/4a251b24f65a70849ab122afa6dfac0fp | |
* Description: Adding additional hooks to trigger RunCloud or lscache plugin purges | |
* Version: 0.1 | |
* Author: Paul Stoute, Jordan Trask, Jeff Cleverly, Neil Gowran | |
* Author URI: https://github.com/jordantrizz/cache-purge-helper | |
* Text Domain: runcloud-beaver-cache-purge-helper |
View 2-col-woo-checkout.css
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
/* 2-col WooCommerce Checkout - tested in BB Theme, Generate Press, TwentyTwelve, TwentyThirteen, TwentyFourteen TwentyFifteen, TwentySixteen, TwentySeventeen and TwentyNineteen */ | |
/* TwentyTwenty and TwentyTwentyOne already have this CSS or similar */ | |
@media(min-width:768px) { | |
.woocommerce .col2-set .col-1, | |
.woocommerce-page .col2-set .col-1 { | |
width: 90%; | |
} |
View icon-canvas.css
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
.fl-icon-selector .fl-lightbox { | |
height: 100%; | |
width: 100%; | |
margin-top: 0 !important; | |
} |
View webhook.php
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
<?php | |
/** | |
* Plugin Name: Woo Custom Webhook | |
* Plugin URI: https://wpbeaches.com/send-full-product-details-over-woocommerce-webhook-action-hook/ | |
* Description: Custom WooCommerce Webhook Action | |
* Author URI: https://github.com/woocommerce/woocommerce/issues/20336#issuecomment-829510702 | |
* Version: 0.1.0 | |
*/ | |
View bricks-container-click.js
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
<script> | |
(function ($) { | |
$(function () { | |
clickContainer(); | |
}); |
View customizer-new-panel.php
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
<?php | |
add_action( 'customize_register', 'bt_register_theme_customizer', 20 ); | |
/** | |
* Add new panel | |
* Register for the Customizer | |
* @since 1.0.0 | |
*/ | |
function bt_register_theme_customizer( $wp_customize ) { |
View cloudflare.cnf
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
# | |
# Author: Mike Rushton | |
# | |
# IMPORTANT | |
# | |
# Please set jail.local's permission to 640 because it contains your CF API key. | |
# | |
# This action depends on curl (and optionally jq). | |
# Referenced from http://www.normyee.net/blog/2012/02/02/adding-cloudflare-support-to-fail2ban by NORM YEE | |
# |
View php-mysql-connect.php
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
<?php | |
//Step1 | |
$db = mysqli_connect('localhost','root','root','database_name') | |
or die('Error connecting to MySQL server.'); | |
?> | |
<html> | |
<head> | |
</head> |
NewerOlder