A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| <?php // Do not include this if already open! Code goes in theme functions.php. | |
| /* | |
| * Force customer creation process in Stripe. | |
| */ | |
| add_filter( 'wc_stripe_force_save_source', '__return_true' ); |
| <?php | |
| function my_pmprorh_depends_fields_init() | |
| { | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; | |
| } | |
| //add a new "About Your Pets" box on checkout form |
| <?php | |
| /* | |
| Plugin Name: PMPro Customizations | |
| Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
| Description: Customizations for my Paid Memberships Pro Setup | |
| Version: .1 | |
| Author: Paid Memberships Pro | |
| Author URI: https://www.paidmembershipspro.com | |
| */ |
| add_action( 'wp_ajax_nopriv_ajax_pagination', 'my_ajax_pagination' ); | |
| add_action( 'wp_ajax_ajax_pagination', 'my_ajax_pagination' ); | |
| function my_ajax_pagination() { | |
| echo get_bloginfo( 'title' ); | |
| die(); | |
| } |
| /** | |
| * Gets a single value. | |
| * The first value if field group is repeatable | |
| * | |
| * @param string $field_slug | |
| * @param int $post_id ID of post or null to use current post in loop | |
| * @param array $options Array or query string of options to send to field type | |
| * @return mixed string or array, depending on the field type | |
| */ | |
| function simple_fields_value($field_slug = NULL, $post_id = NULL, $options = NULL) { |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |