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 | |
| /** | |
| * VSP functions and definitions | |
| * | |
| * @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
| * | |
| * @package VSP | |
| */ | |
| if ( ! function_exists( 'vsp_setup' ) ) : |
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 you are using Composer | |
| require 'vendor/autoload.php'; | |
| use SendGrid\Mail; | |
| $apiKey = getenv('SENDGRID_API_KEY'); | |
| $sg = new \SendGrid($apiKey); |
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
| /*-------------------------------------- | |
| Woocommerce - Allow Guest Checkout on Certain products | |
| ----------------------------------------*/ | |
| // Display Guest Checkout Field | |
| add_action( 'woocommerce_product_options_general_product_data', 'woo_add_custom_general_fields' ); | |
| function woo_add_custom_general_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; |
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 moved permanently (redirect): | |
| <?php | |
| header('HTTP/1.1 301 Moved Permanently'); | |
| header('Location: http://www.example.com'); | |
| die(); | |
| ?> | |
| 302 moved temporarily(redirect): | |
| <?php | |
| header('Location: http://www.example.com'); |
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('dd')) { | |
| function dd($data) | |
| { | |
| ini_set("highlight.comment", "#969896; font-style: italic"); | |
| ini_set("highlight.default", "#FFFFFF"); | |
| ini_set("highlight.html", "#D16568"); | |
| ini_set("highlight.keyword", "#7FA3BC; font-weight: bold"); | |
| ini_set("highlight.string", "#F2C47E"); |
OlderNewer