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
| // Fix: Pinterest for WooCommerce pixel + UserCentrics consent | |
| // | |
| // The plugin outputs the Pinterest base code via echo in wp_footer — there's | |
| // no filter to modify it. This snippet uses output buffering to intercept the | |
| // full page HTML and replace the script type/attributes so UserCentrics can | |
| // manage consent for the Pinterest pixel. | |
| // | |
| // What it does: changes <script type="text/javascript"> to | |
| // <script type="text/plain" data-usercentrics="Pinterest"> inside the | |
| // Pinterest Pixel Base Code block only. This targets both the standard and |
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 | |
| /* | |
| Plugin Name: Custom Dashboard Widgets | |
| Plugin URI: https://wpnathan.com | |
| Description: Creates Custom Dashboard Widgets for Client Websites | |
| Version: 1.0 | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Functions for Gravity Forms | |
| Plugin URI: https://wpnathan.com | |
| Description: Customize Gravity Forms Default Behavior | |
| Version: 1.0 | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Functions for Beaver Builder | |
| Plugin URI: https://wpnathan.com | |
| Description: Extend and Customize Beaver Builder | |
| Version: 1.0 | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Media Handling Functions | |
| Plugin URI: https://wpnathan.com | |
| Description: Customize WordPress Default Media Behavior | |
| Version: 1.0 | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Shortcodes | |
| Description: Add Custom Shortcodes | |
| Plugin URI: https://wpnathan.com | |
| Version: 1.0 | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Security Functions | |
| Description: Customized WP Security | |
| Version: 1.0 | |
| Plugin URI: https://wpnathan.com | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Dashboard Functions | |
| Description: Customize the WP Admin | |
| Version: 1.0 | |
| Plugin URI: https://wpnathan.com | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Custom Core Functions | |
| Description: Customize the WP Core | |
| Version: 1.0 | |
| Plugin URI: https://wpnathan.com | |
| Author: Nathan Ingram | |
| Author URI: https://wpnathan.com | |
| License: GPL2 | |
| */ |
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
| // Exclude Image Sizes from SIR Plugin | |
| // List all sizes to be excluded in the list below | |
| add_filter('wp_sir_exclude_sizes', function() { | |
| return [ | |
| 'woocommerce_gallery_thumbnail', | |
| 'thumbnail', | |
| 'medium', | |
| 'medium_large', | |
| 'large', | |
| 'news_grid', |
NewerOlder