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
| // Bloom Custom CSS Help | |
| add_action( 'et_bloom_after_main_options', 'add_bloom_custom_options', 10, 2 ); | |
| function add_bloom_custom_options( $option, $current_option_value ) { | |
| if ( is_admin() && $option[name] == 'custom_css' ) { | |
| $optin_id = $_POST['reset_optin_id']; | |
| printf( '<li class="et_dashboard_auto_height"> | |
| <h3 style="margin-top: 15px">CSS HELP</h3> | |
| <div style="margin-bottom:15px;"><strong>Target This Optin:</strong><br>.et_bloom_%1$s.et_bloom_optin { ... css code here ... }</div> | |
| <div style="margin-bottom:15px;"><strong>HIDE ON DESKTOP:</strong><br>@media screen and (min-width:981px) { .et_bloom_%1$s.et_bloom_optin {display:none !important;} }</div> | |
| <div style="margin-bottom:15px;"><strong>HIDE ON MOBILE:</strong><br>@media screen and (max-width:981px) { .et_bloom_%1$s.et_bloom_optin {display:none !important;} }</div> |
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
| /************************************** | |
| * VC ACF GRID ITEM W/ RELATIONSHIP | |
| ***************************************/ | |
| add_filter( 'vc_grid_item_shortcodes', 'vc_grid_item_shortcode_acf_extra' ); | |
| function vc_grid_item_shortcode_acf_extra( $shortcodes ) { | |
| $groups = function_exists( 'acf_get_field_groups' ) ? acf_get_field_groups() : apply_filters( 'acf/get_field_groups', array() ); | |
| $groups_param_values = $fields_params = array(); | |
| foreach ( $groups as $group ) { | |
| $id = isset( $group['id'] ) ? 'id' : ( isset( $group['ID'] ) ? 'ID' : 'id' ); | |
| $groups_param_values[ $group['title'] ] = $group[ $id ]; |
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
| /*--------------------------------- | |
| Autofill Expiration on Admin Level Change | |
| -----------------------------------*/ | |
| function profile_autofill_expiration() | |
| { | |
| global $wpdb; | |
| $sqlQuery = "SELECT * FROM $wpdb->pmpro_membership_levels "; | |
| $sqlQuery .= "ORDER BY id ASC"; | |
| $levels = $wpdb->get_results($sqlQuery, OBJECT); |
NewerOlder