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 | |
use Tribe\Events\Filterbar\Views\V2\Filters\Day_Of_Week; | |
/** | |
* Class Theme_Day_Of_Week_Simple_Filter | |
* | |
* @see \Tribe\Events\Filterbar\Views\V2\Filters\Day_Of_Week | |
* @see \Tribe__Events__Filterbar__Filters__Day_Of_Week | |
*/ |
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_filter( 'tiny_mce_before_init', function( $settings ) { | |
// Set pasting as text as default. No more foreign style in the editor | |
$settings['paste_as_text'] = true; | |
return $settings; | |
} ); |
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 | |
// Drop this into your functions.php | |
/** | |
* ACF: Keep the last edited tab selection when post refreshes. | |
* | |
* When a post containing ACF tabs is opened for edits, the currently selected tab | |
* will be saved in a transient. Upon save or refresh of the page, the last selected | |
* tab will be selected again, making it more convenient to work with ACF tabs. |