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, | |
)); |
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' ) ); | |
} | |
} |
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; | |
/** |
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', { |
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' ); |
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) |
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
Index: functions.php | |
=================================================================== | |
--- functions.php (revision 56804) | |
+++ functions.php (working copy) | |
@@ -7,9 +7,19 @@ | |
namespace P2020; | |
+function is_automattician() { | |
+ return false; |