This file contains 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
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
This file contains 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 | |
/** | |
* An example for how to dequeue a script | |
* | |
* Obtain the handle of your script by searching through the code, and then | |
* add a wp_deregister_script() function call for that handle. | |
*/ | |
function tribe_dequeue_script_example() { | |
wp_deregister_script( 'tribe-events-jquery-resize' ); |
This file contains 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 | |
/** | |
* Adds a + Google Calendar link to each ticket in the tickets email | |
*/ | |
function tribe_add_gcal_to_email( $event ) { | |
printf( | |
'<a class="tribe-events-gcal tribe-events-button" href="%1$s" title="%2$s">%3$s</a>', | |
Tribe__Events__Main::instance()->esc_gcal_url( tribe_get_gcal_link( $event ) ), | |
esc_attr__( 'Add to Google Calendar', 'the-events-calendar' ), |
This file contains 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 | |
/** | |
* Hides the address line on archive views | |
*/ | |
function tribe_hide_full_address_archive() { | |
if ( is_main_query() && ! is_single() ) { | |
add_filter( 'tribe_get_full_address', '__return_empty_string' ); | |
} | |
} |
This file contains 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 | |
/** | |
* Takes you to page 2 of the list view from the Widget's View More... link | |
* | |
* @see tribe_events_get_list_widget_view_all_link | |
*/ | |
function tribe_customize_widget_view_more_link( $link ){ | |
return $link . '?tribe_paged=2&tribe_event_display=list'; | |
} |
This file contains 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 | |
/** | |
* Adds more display options to the ical feeds | |
* | |
* This will show recently published events, up to 40 of them: | |
* events-slug/?ical=1&tribe_display=recently-published&tribe_posts_amount=40 | |
* | |
* This will show all events in the year 2012 | |
* events-slug/?ical=1&tribe_display=year&eventDate=2012 |
This file contains 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 | |
/** | |
* Adds a notice to your ticket purchase forms asking users without JavaScript enabled to enable it | |
*/ | |
class Tribe__Snippet__Attendee_Meta_Noscript { | |
protected $tickets_hook; | |
public function __construct() { | |
add_filter( 'tribe_tickets_commerce_tickets_form_hook', array( $this, 'get_hook' ), PHP_INT_MAX ); |
This file contains 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 ( ! function_exists( 'tribe_body_class_recurring_all' ) ) { | |
/** | |
* Adds a recurring all body class to the recurring all page | |
* | |
* @see body_class | |
*/ | |
function tribe_body_class_recurring_all( $classes, $class ) { |
This file contains 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 | |
/** | |
* Changes the recurrent events see all page to a different URL | |
*/ | |
Class Tribe__Snippet__Change_All_Link { | |
public $all_link_text; | |
public function __construct( $all_text_link = 'all' ) { |
This file contains 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 | |
/** | |
* Hide the WooCommerce quantity adjustment fields on cart pages | |
*/ | |
function tribe_hide_woo_quantity_change() { | |
if ( ! is_cart() ) { | |
return; | |
} |
NewerOlder