Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
andrasguseo / modify-imported-event-venue.php
Created Apr 17, 2018
Modify / remove event venue when importing with EA (The Events Calendar)
View modify-imported-event-venue.php
<?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)
@lukecav
lukecav / functions.php
Last active Sep 7, 2018
Remove the try Gutenberg panel from the dashboard in WordPress admin (WP 4.9.7)
View functions.php
remove_action( 'try_gutenberg_panel', 'wp_try_gutenberg_panel' );
@pento
pento / stars-block.js
Last active Jul 30, 2018
Gutenberg Stars Block
View stars-block.js
( 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
<?php
/**
* Class Customize_Postmeta_Setting.
*
* @package WPSE_257322
*/
namespace WPSE_257322;
/**
@elimn
elimn / tribe_remove_single_calendar_links.php
Created Feb 14, 2017
MT | TEC | Remove the iCal and Google cal links from the single event page
View tribe_remove_single_calendar_links.php
@ericjuden
ericjuden / functions.php
Last active Sep 3, 2020
Taxonomy Dropdown Control for WordPress Theme Customizer
View functions.php
<?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,
));