4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
| // Gravity Forms anchor - disable auto scrolling of forms | |
| add_filter("gform_confirmation_anchor", create_function("","return false;")); |
| <?php | |
| # Register custom post types on the 'init' hook. | |
| add_action( 'init', 'my_register_post_types' ); | |
| /** | |
| * Registers post types needed by the plugin. | |
| * | |
| * @since 1.0.0 | |
| * @access public |
| <?php | |
| /** | |
| * This file adds the Landing template to the eleven40 Pro Theme. | |
| * | |
| * @author StudioPress | |
| * @package Generate | |
| * @subpackage Customizations | |
| */ | |
| /* |
| <?php | |
| $header = array( | |
| 'default-image' => get_stylesheet_directory_uri().'/images/pageone.png', | |
| 'random-default' => false, | |
| 'width' => 320, | |
| 'height' => 60, | |
| 'flex-height' => true, | |
| 'flex-width' => true, | |
| 'default-text-color' => '#333333', |
| // Filter the title with a custom function | |
| add_filter('genesis_seo_title', 'wap_site_title' ); | |
| // Add additional custom style to site header | |
| function wap_site_title( $title ) { | |
| // Change $custom_title text as you wish | |
| $custom_title = '<span class="custom-title">WA</span>Estate'; | |
| // Don't change the rest of this on down |
| <?php | |
| class RW_Delete_Entry { | |
| function __construct() { | |
| if( ! property_exists( 'GFCommon', 'version' ) || ! version_compare( GFCommon::$version, '1.8.5.8', '>=' ) ) | |
| return; | |
| add_filter( 'gform_tooltips', array( $this, 'add_delete_tooltip') ); | |
| add_filter( 'gform_form_settings', array( $this, 'add_delete_setting' ), 10, 2 ); | |
| add_action( 'gform_pre_form_settings_save', array( $this, 'save_delete_setting' ), 10 ); | |
| add_action( 'gform_after_submission', array( $this, 'maybe_delete_form_entry' ), 15, 2 ); |
| <?php | |
| remove_action ( 'genesis_loop', 'genesis_do_loop' ); // Remove the standard loop | |
| add_action( 'genesis_loop', 'custom_espresso_events_archive_loop' ); // Add custom loop | |
| // Optional: Remove post info | |
| remove_action( 'genesis_before_post_content', 'genesis_post_info' ); | |
| remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
| function custom_espresso_events_archive_loop() { |
| add_filter( 'genesis_attr_content', 'custom_attributes_content' ); | |
| /** | |
| * Add the class needed for FacetWP to main element. | |
| * | |
| * Context: Posts page, all Archives and Search results page. | |
| * | |
| * @author Sridhar Katakam | |
| * @link http://sridharkatakam.com/facetwp-genesis/ | |
| */ | |
| function custom_attributes_content( $attributes ) { |
| <?php | |
| // Place this in theme or your own agency plugin | |
| add_filter( 'woocommerce_payment_complete_order_status', 'complete_paid_orders', 10, 2 ); | |
| /** | |
| * Auto Complete Paid orders in WooCommerce | |
| * only if all products are virtual in the order | |
| * | |
| * @author Jamie Madden <[email protected]> |