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 | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-gravity-forms-rename-uploaded-files.php | |
| */ | |
| # First and Last Name | |
| new GW_Rename_Uploaded_Files( array( | |
| 'form_id' => 628, |
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
| //The following section is an add-on to this tutorial - https://tri.be/gravity-forms-events-calendar-submissions/ | |
| //Shout to CreativeSlice.com for their initial work | |
| /* Before Starting: | |
| - Make sure you have these three plugins installed | |
| - Gravity Forms | |
| - The Events Calendar | |
| - Gravity Forms + Custom Post Types | |
| - Once Gravity Forms is installed, create a form with these fields | |
| - Single Line Text (Event Title) | |
| - Paragraph Text (Event Description) |
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 | |
| /** | |
| * Remove the h1 tag from the WordPress editor. | |
| * | |
| * @param array $settings The array of editor settings | |
| * @return array The modified edit settings | |
| */ | |
| function remove_h1_from_editor( $settings ) { | |
| $settings['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;'; | |
| return $settings; |
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
| if ( ! function_exists( 'helper_vc_fonts' ) ) { | |
| function helper_vc_fonts( $fonts_list ) { | |
| $poppins->font_family = 'Poppins'; | |
| $poppins->font_types = '300 light regular:300:normal,400 regular:400:normal,500 bold regular:500:normal,600 bold regular:600:normal,700 bold regular:700:normal'; | |
| $poppins->font_styles = 'regular'; | |
| $poppins->font_family_description = esc_html_e( 'Select font family', 'helper' ); | |
| $poppins->font_style_description = esc_html_e( 'Select font styling', 'helper' ); | |
| $fonts_list[] = $poppins; | |
| return $fonts_list; |
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 additional classes / id to the facetwp-template div generated by a facetwp | |
| ** layout template | |
| **/ | |
| add_filter( 'facetwp_shortcode_html', function( $output, $atts) { | |
| if ( $atts['template'] = 'example' ) { // replace 'example' with name of your template | |
| /** modify replacement as needed, make sure you keep the facetwp-template class **/ | |
| $output = str_replace( 'class="facetwp-template"', 'id="masonry-container" class="facetwp-template small-up-1 medium-up-2 large-up-3"', $output ); | |
| } | |
| return $output; |
OlderNewer