find . -printf '%s %p\n'| sort -nr | head -10
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
/** | |
* Add a custom shortcode to popup youtube videos in a thickbox overlay. | |
* Pastable to functions.php in a WordPress theme. | |
* | |
* Usage (in WP Editor): | |
* [ytp url="http://www.youtube.com/watch?v=xxxxxxxxxxxxx"] | |
* | |
* From: http://manchumahara.com/2010/03/22/using-wordpress-native-thickbox/ | |
*/ |
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 | |
/** | |
* Plugin Name: WordPress Importer Post ID Preservation | |
* Description: When importing posts make sure that post ID from the original site is used on the destination site. This should only be used when first setting up an environment, or if the destination site is not canonical (e.g. a dev or staging environment). | |
* Author: Weston Ruter, XWP | |
*/ | |
/** | |
* Force WordPress Importer to never honor the post_exists() check, since we want to override existing posts. | |
* |
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 | |
/** | |
* Plugin Name: TOPTAL WP-CLI Commands | |
* Version: 0.1 | |
* Plugin URI: https://n8finch.com/ | |
* Description: Some rando wp-cli commands to make life easier... | |
* Author: Nate Finch | |
* Author URI: https://n8finch.com/ | |
* Text Domain: toptal-wpcli | |
* Domain Path: /languages/ |
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 | |
/** | |
* Make Elementor the default editor, not the WordPress Editor (Gutenberg or Classic) | |
* Clicking the page title will take you to the Elementor editor directly | |
* Even non-Elementor-edited pages will become Elementor-edited pages now | |
* You can revert by clicking the "Back to WordPress Editor" button | |
* | |
* Author: Joe Fletcher, https://fletcherdigital.com | |
* URL: https://gist.github.com/heyfletch/7c59d1c0c9c56cbad51ef80290d86df7 |
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
$wp_customize->add_control( | |
new WP_Customize_Latest_Post_Control( | |
$wp_customize, | |
'featpost_control', | |
array( | |
'label' => __( 'Select A Featured Post', 'mytheme' ), | |
'section' => 'header_section', | |
'settings' => 'featured_post', | |
'post_type' => 'page' | |
) |
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
/** | |
* Default WooCommerce Single Product Hooks | |
*/ | |
/** | |
* Hook: woocommerce_before_single_product_summary. | |
* | |
* @hooked woocommerce_show_product_sale_flash - 10 | |
* @hooked woocommerce_show_product_images - 20 | |
* | |
* Hook: woocommerce_single_product_summary. |
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
inotifywait --monitor --timefmt '%F %T' --format '%T %w %e' --recursive $1 |
OlderNewer