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
checkURLs: function( urls ) { | |
var percentage; | |
if ( urls.length == 0 ) { | |
finiquitado(); | |
return; | |
} | |
// Le robamos una URL a esto | |
var url = urls.shift(); |
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_action( 'wp_footer', 'apppointmens_hacks_scripts', 20 ); | |
function apppointmens_hacks_scripts() { | |
if ( wp_script_is( 'app-shortcode-confirmation', 'enqueued' ) ) { | |
?> | |
<script> | |
( function( $ ) { | |
$(document).on("app-confirmation-response_received", function() { | |
var paypalForm = $(".appointments-paypal > form"); |
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_filter( 'appointments_gcal_update_event', 'app_gcal_update_event_summary', 10, 2 ); | |
function app_gcal_update_event_summary ( $event, $app ) { | |
if ( $event ) { | |
$appointments = appointments(); | |
$event->setSummary( $appointments->get_service_name( $app->service ) . ' Appointment' ); | |
} | |
return $event; | |
} |
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_filter( 'appointments_gcal_update_event', 'appointments_hooks_gcal_update_event', 10, 2 ); | |
function appointments_hooks_gcal_update_event( $event, $appointment ) { | |
$appointments = appointments(); | |
$gcal_api = $appointments->get_gcal_api(); | |
$event = $gcal_api->appointment_to_gcal_event( $appointment->ID ); | |
return $event; | |
} |
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_filter( 'wp_mail', 'ltu_add_unsubscribe_links' ); | |
function ltu_add_unsubscribe_links( $args ) { | |
if ( ! class_exists( 'IW_LTU' ) ) { | |
// Let Them Unsubscribe is not active | |
return $args; | |
} | |
$email = $args['to']; |
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 | |
class My_Form_Submit_Ticket_Form_Shortcode extends Incsub_Support_Shortcode { | |
public function __construct() { | |
add_action( 'template_redirect', array( $this, 'process_form' ) ); | |
add_shortcode( 'support-system-submit-ticket-form', array( $this, 'render' ) ); | |
} | |
public function process_form() { | |
if ( isset( $_POST['support-system-submit-ticket'] ) && incsub_support_current_user_can( 'insert_ticket' ) ) { |
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 | |
class Jetpack_Mandatory_Modules { | |
public function __construct() { | |
add_action( 'plugins_loaded', array( $this, 'load_base_jetpack' ) ); | |
// Este hook marcará los módulos obligatorios como activados | |
// aquellos obligatorios que nosotros queremos |
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 | |
class Jetpack_Mandatory_Modules { | |
public function __construct() { | |
$active_plugins = get_option( 'active_plugins' ); | |
if ( ! in_array( 'jetpack/jetpack.php', $active_plugins ) ) { | |
// Jetpack está desactivado pero lo vamos a cargar y ocultar |
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 ( $is_divi_builder_loaded ) { | |
// This won't activate minification while Divi builder is loaded in front | |
add_filter( 'wp_hummingbird_is_active_module_minify', '__return_false', 50 ); | |
} | |
// Don't minify Divi assets in any case | |
add_filter( 'wphb_minify_resource', function( $minify, $handle, $type ) { |
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: React Plugin | |
*/ | |
class React_Plugin { | |
private $page_id; | |
public function __construct() { |