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: Remove crazy counts slowing down my dashboard | |
| * Plugin URI: https://pmgarman.me | |
| * Description: Those comment counts are such a pain when you have a lot of comments | |
| * Author: Patrick Garman | |
| * Author URI: https://pmgarman.me | |
| * Version: 1.0.0 | |
| * License: GPLv2 | |
| */ |
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
| # wordpress-seo provides ability to edit meta information and provides sitemap. | |
| # w3-total-cache provides advanced caching no matter the server technology available. | |
| # better-wp-security provides brute force protection and a number of WordPress enhancements. | |
| # google-analytics-for-wordpress provides robust Google Analytics integration through the Google API. | |
| # redirection detects 404s and 301s and allows admins to set up redirects in the WP admin. | |
| # ewww-image-optimizer provides automatic optimization of uploaded images with local libraries instead of cloud-based services. | |
| # backupwordpress simple backup solution that can store backups above web root. | |
| # relevanssi provides better site search using a local index. | |
| # cloudflare is the best. Free automatic CDN and security solution. | |
| # jarvis is a quick search for the WordPress admin. Indespensible. |
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 | |
| // You need Vimeo API https://github.com/vimeo/vimeo.php | |
| require 'path-to-your-lib/vimeo/vimeo.php'; | |
| // Get this from your account | |
| $vimeo_client_id = 'xxxxx'; | |
| $vimeo_client_secret = 'xxxxxxxxxxx'; | |
| // This has to be generated on your site, plugin or theme | |
| $vimeo_token = 'xxxxxx'; |
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
| function rmcc_add_dashboard_widget() { | |
| wp_add_dashboard_widget( 'rmcc_dashboard_welcome', 'Welcome', 'rmcc_welcome_widget_callback' ); | |
| } | |
| add_action( 'wp_dashboard_setup', 'rmcc_add_dashboard_widget' ); |
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: YOUR PLUGIN NAME | |
| */ | |
| include( dirname( __FILE__ ) . '/lib/requirements-check.php' ); | |
| $your_plugin_requirements_check = new YOUR_PREFIX_Requirements_Check( array( | |
| 'title' => 'YOUR PLUGIN NAME', | |
| 'php' => '5.4', |
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
| /** | |
| * Enqueue Google Analytics 4 script | |
| * | |
| */ | |
| /* Add Google Analytics 4 Site Tag as close to | |
| the opening <head> tag as possible | |
| =====================================================*/ | |
| define("GA4","G-XXXXXX", false); // Replace GA4 ID |
OlderNewer