This file contains hidden or 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 a 'Add rel="nofollow" to link' checkbox to the WordPress link editor | |
| * | |
| * @see https://danielbachhuber.com/tip/rel-nofollow-link-modal/ | |
| */ | |
| add_action( 'after_wp_tiny_mce', function(){ | |
| ?> | |
| <script> |
This file contains hidden or 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 | |
| /** | |
| * This will trick FacetWP's indexer into indexing "tags_list" values for the "categories_new" facet | |
| * | |
| * Re-index after adding the following code into your (child) theme's functions.php | |
| */ | |
| add_filter( 'facetwp_index_row', function( $params, $class ) { | |
| if ( 'tags_list' == $params['facet_name'] ) { | |
| $params['facet_name'] = 'categories_new'; |