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 | |
| /** | |
| * Hubspot Integration for Ninja Forms. | |
| * | |
| * @package Nano | |
| */ | |
| class NF_Hubspot { | |
| // Hooks into ninja_forms_after_submission | |
| public function init() { |
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 | |
| /** | |
| * Add extra profile fields for users in admin. | |
| * | |
| * @author Nano | |
| * @version 2.2.0 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; // Exit if accessed directly |
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
| /*! | |
| * Script for initializing globally-used functions and libs. | |
| * | |
| * @since 1.0.0 | |
| */ | |
| (function($) { | |
| var theme = { | |
| // Init functions |
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 | |
| /** | |
| * When a trial product is purchased we add a subscription product the order | |
| * directly before order processing. | |
| * | |
| * This subscription order charges after 14 days if customer does not cancel. | |
| */ | |
| class Nano_Trial_Subscription { |
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 | |
| /** | |
| * Checks if e-mail address has been used previously for a purchase. | |
| * | |
| * @param string $email of customer | |
| * @return boolean | |
| */ | |
| function is_returning_customer( $email ) { | |
| $customer_orders = wc_get_orders( array( |
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 | |
| /** | |
| * When a trial product is purchased we create an order for a subscription product. | |
| * | |
| * This subscription order charges after 14 days if customer does not cancel. | |
| */ | |
| class Nano_Trial_Subscription { | |
| /** |
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 | |
| get_bloginfo( 'version' ); | |
| global $wp_version; | |
| if ( version_compare( $wp_version, '4.3', '>=' ) ) { | |
| // WordPress version is greater than 4.3 | |
| } | |
| if ( function_exists( 'has_post_format' ) ) { |
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 | |
| $this->add_section( 'title_tagline', array( | |
| 'title' => __( 'Site Title & Tagline' ), | |
| 'priority' => 20, | |
| ) ); | |
| $this->add_section( 'title_tagline', array( | |
| 'title' => __( 'Site Title & Tagline' ), | |
| 'priority' => 20, |
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: Portfolio Post Type Gist | |
| Plugin URI: https://wptheming.com | |
| Description: Enables a portfolio post type and taxonomies. | |
| Version: 0.1 | |
| Author: Devin Price | |
| Author URI: https://wptheming.com/portfolio-post-type/ | |
| License: GPLv2 | |
| */ |