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
| function limit_file_upload_size( $validation_result ) { | |
| $form = $validation_result['form']; | |
| foreach( $form['fields'] as &$field ){ | |
| // NOTE: Add a custom CSS class to your image upload field and grab onto it here... | |
| if( strpos( $field['cssClass'], 'choose-file' ) === false ) | |
| continue; | |
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: Upload AR Quick Look files | |
| * Description: Upload AR Quick Look files (usdz or reality) to your WordPress media library. | |
| * Author: Alexander Goller | |
| * Author URI: https://alexandergoller.com | |
| */ | |
| $arMimes = [ |
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 | |
| ini_set( 'max_execution_time', 0 ); /* Do not abort with timeouts */ | |
| ini_set( 'display_errors', 'Off' ); /* Do not display any errors to anyone */ | |
| $urls = array(); /* The broadcast session queue */ | |
| /* List of IPN listener points */ | |
| $ipns = array( | |
| 'edd' => 'https://domain.com/?edd-listener=IPN', | |
| 'edd_payments' => 'https://domain.com/?Paypal_For_Edd=&action=ipn_handler', |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <array> | |
| <dict> | |
| <key>Activate</key> | |
| <string>Normal</string> | |
| <key>CreationDate</key> | |
| <real>604609311.14479399</real> | |
| <key>Macros</key> |
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 | |
| /** | |
| * If badgeos select2 is enqueued, remove it, as it causes conflicts. | |
| */ | |
| function fix_badgeos_bug_for_gathercontent( $data ) { | |
| // BadgeOS is a bad citizen as it is enqueueing its (old) version of select2 in the entire admin. | |
| // It is incompatible with the new version, so we need to remove it on our pages. | |
| if ( wp_script_is( 'badgeos-select2', 'enqueued' ) ) { | |
| wp_dequeue_script( 'badgeos-select2' ); |
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 | |
| /* | |
| * NB You will need to add the following lines into the actual plugin. | |
| * line 114,122,130,138 and 146 - are the filters which you want to include in you sensei-certificates plugin. | |
| * line 158 - this filter allows you to change the type of field, textarea or normal input. | |
| */ | |
| class WooThemes_Sensei_Certificates { |
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
| /** | |
| * Declare Sensei support | |
| * | |
| * This is needed to hide the Sensei theme compatibility notice your admin dashboard. | |
| */ | |
| add_action( 'after_setup_theme', 'divi_sensei_support' ); | |
| function divi_sensei_support() { | |
| add_theme_support( 'sensei' ); | |
| } |
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
| jQuery(function ($) { | |
| var datepickerInArgs = { | |
| minDate: 1, | |
| defaultDate: 0, | |
| dateFormat: 'dd/mm/yy', | |
| changeMonth: true, | |
| changeYear: true, | |
| onClose: function( dateText, inst ) { | |
| var d = $.datepicker.parseDate( inst.settings.dateFormat, dateText ); |
NewerOlder