View modify-imported-event-venue.php
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 | |
/* | |
* Description: Removes the venue details from the imported event | |
* Note: Once the event, venue. etc are imported it forces PRO | |
* to recalculate the venue coords via Google | |
* | |
* Usage: modify the URL at the end of the code based on your needs | |
* | |
* Version: 1.0 | |
* Plugins: The Events Calendar (Event Aggregator) |
View functions.php
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
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' ); |
View stars-block.js
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
( function( blocks, element ) { | |
var el = element.createElement; | |
function Stars( { stars } ) { | |
return el( 'div', { key: 'stars' }, | |
'★'.repeat( stars ), | |
( ( stars * 2 ) % 2 ) ? '½' : '' ); | |
} | |
blocks.registerBlockType( 'stars/stars-block', { |
View class-customize-single-postmeta-setting.php
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 | |
/** | |
* Class Customize_Postmeta_Setting. | |
* | |
* @package WPSE_257322 | |
*/ | |
namespace WPSE_257322; | |
/** |
View tribe_remove_single_calendar_links.php
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 | |
/** | |
* Removes the iCal and Google cal links from the single event page | |
*/ | |
function tribe_remove_single_calendar_links() { | |
if ( function_exists( 'tribe' ) ) { | |
remove_action( 'tribe_events_single_event_after_the_content', array( tribe( 'tec.iCal' ), 'single_event_links' ) ); | |
} | |
} |
View functions.php
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 | |
add_action('customize_register', 'my_customize_register'); | |
function my_customize_register($wp_customize){ | |
require_once(TEMPLATEPATH . '/class/wp_customizer_taxonomy_dropdown.php'); | |
$wp_customize->add_section('my_theme_blog_featured_categories', array( | |
'title' => __('Blog: Featured Categories'), | |
'priority' => 36, | |
)); |