{"id":20899504,"url":"https://github.com/mrgkanev/awesome-wordpress-functions","last_synced_at":"2026-02-27T04:04:21.112Z","repository":{"id":215331126,"uuid":"738669608","full_name":"MrGKanev/awesome-wordpress-functions","owner":"MrGKanev","description":"Welcome to the Awesome WordPress Functions repository! This project is dedicated to providing a comprehensive collection of useful WordPress functions to help you optimize and customize your WordPress site. Whether you’re looking to tweak the admin panel, improve performance, or enhance WooCommerce, you’ll find practical solutions here.","archived":false,"fork":false,"pushed_at":"2024-10-23T08:30:44.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T21:02:15.449Z","etag":null,"topics":["funcions","php","snippets","woocommerce","wordpress","wp"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrGKanev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T19:08:15.000Z","updated_at":"2024-11-27T02:50:34.000Z","dependencies_parsed_at":"2024-05-14T12:00:17.656Z","dependency_job_id":"668a2aa7-4b0d-4bb8-97f5-6677973785f6","html_url":"https://github.com/MrGKanev/awesome-wordpress-functions","commit_stats":null,"previous_names":["mrgkanev/awesome-wordpress-functions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrGKanev/awesome-wordpress-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fawesome-wordpress-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fawesome-wordpress-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fawesome-wordpress-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fawesome-wordpress-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrGKanev","download_url":"https://codeload.github.com/MrGKanev/awesome-wordpress-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrGKanev%2Fawesome-wordpress-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["funcions","php","snippets","woocommerce","wordpress","wp"],"created_at":"2024-11-18T11:14:14.679Z","updated_at":"2026-02-27T04:04:21.086Z","avatar_url":"https://github.com/MrGKanev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Awesome WordPress Functions\n\nThis is a list of useful WordPress functions that I often reference to enhance or clean up my sites. Please be careful and make backups.\n\nYou can use a plugin or add it into your \"functions.php\" file. Here are plugins that I recommend:\n\n- [Fluent Snippets](https://wordpress.org/plugins/easy-code-manager/) - Newer but faster.\n- [Code Snippets](https://wordpress.org/plugins/code-snippets/) - Slower but popular.\n\n## 1. [General WordPress Setup](general-wordpress-setup.md)\n\n- [Hide WordPress Update Nag to All But Admins](general-wordpress-setup.md/#hide-wordpress-update-nag-to-all-but-admins)\n- [Utilize Proper WordPress Titles](general-wordpress-setup.md/#utilize-proper-wordpress-titles)\n- [Create Custom WordPress Dashboard Widget](general-wordpress-setup.md/#create-custom-wordpress-dashboard-widget)\n- [Remove All Dashboard Widgets](general-wordpress-setup.md/#remove-all-dashboard-widgets)\n- [Include Navigation Menus](general-wordpress-setup.md/#include-navigation-menus)\n- [Insert Custom Login Logo](general-wordpress-setup.md/#insert-custom-login-logo)\n- [Modify Admin Footer Text](general-wordpress-setup.md/#modify-admin-footer-text)\n- [Enqueue Styles and Scripts](general-wordpress-setup.md/#enqueue-styles-and-scripts)\n- [Enqueue Google Fonts](general-wordpress-setup.md/#enqueue-google-fonts)\n\n## 2. [Content Modification](content-modification.md)\n\n- [Modify Excerpt Length](content-modification.md/#modify-excerpt-length)\n- [Change Read More Link](content-modification.md/#change-read-more-link)\n- [Change More Excerpt](content-modification.md/#change-more-excerpt)\n- [Disable Emojis Mess](content-modification.md/#disable-emojis-mess)\n- [Remove Comments](content-modification.md/#remove-comments)\n- [Limit Post Revisions](content-modification.md/#limit-post-revisions)\n- [Change Media Gallery URL](content-modification.md/#change-media-gallery-url)\n- [Create Custom Thumbnail Size](content-modification.md/#create-custom-thumbnail-size)\n- [Add Categories for Attachments](content-modification.md/#add-categories-for-attachments)\n- [Add Tags for Attachments](content-modification.md/#add-tags-for-attachments)\n- [Add Custom Excerpt to Pages](content-modification.md/#add-custom-excerpt-to-pages)\n\n## 3. [Global Settings \u0026 Customizations](global-settings-customizations.md)\n\n- [Create a Global String](global-settings-customizations.md/#create-a-global-string)\n- [Support Featured Images](global-settings-customizations.md/#support-featured-images)\n- [Support Search Form](global-settings-customizations.md/#support-search-form)\n- [Excluding pages from search](global-settings-customizations.md/#excluding-pages-from-search)\n- [Disable XMLRPC](global-settings-customizations.md/#disable-xmlrpcphp)\n- [Escape HTML in Posts](global-settings-customizations.md/#escape-html-in-posts)\n- [Create Custom Global Settings](global-settings-customizations.md/#global-settings-customizations.mdcreate-custom-global-settings)\n- [Remove WordPress Admin Bar](global-settings-customizations.md/#remove-wordpress-admin-bar)\n- [Add Open Graph Meta Tags](global-settings-customizations.md/#add-open-graph-meta-tags)\n- [Disable the WordPress Version information in the head section](global-settings-customizations.md/#disable-the-wordpress-version-information-in-the-head-section)\n\n## 4. [Customizations \u0026 Tweaks](customizations-tweaks.md)\n\n\n- [Add Custom Post Type](customizations-tweaks.md/#add-custom-post-type)\n- [Exclude a Category From WordPress Loops](customizations-tweaks.md/#exclude-a-category-from-wordpress-loops)\n- [Implement Preconnect to Google Fonts in Themes](customizations-tweaks.md/#implement-preconnect-to-google-fonts-in-themes)\n- [Add Thumbnail Column to Post Listing](customizations-tweaks.md/#add-thumbnail-column-to-post-listing)\n- [Add Lead Class to First Paragraph](customizations-tweaks.md/#add-lead-class-to-first-paragraph)\n- [Exclude Custom Post Type from Search](customizations-tweaks.md/#exclude-custom-post-type-from-search)\n- [Remove Query String from Static Resources](customizations-tweaks.md/#remove-query-string-from-static-resources)\n- [Disable Website Field From Comment Form](customizations-tweaks.md/#disable-website-field-from-comment-form)\n- [Modify jQuery](customizations-tweaks.md/#modify-jquery)\n- [Disable JSON Rest API](customizations-tweaks.md/#customizations-tweaks.mddisable-json-rest-api)\n\n## 5. [Admin Menu \u0026 User Role Management](admin-user-role.md)\n\n- [Remove Admin Menu Items Depending on User Role](admin-user-role.md/#remove-admin-menu-items-depending-on-user-role)\n- [Remove Admin Menu Items Depending on Email Address (Domain)](admin-user-role.md/#remove-admin-menu-items-depending-on-email-address-domain)\n- [Reorder Admin Menu Items](admin-user-role.md/#reorder-admin-menu-items)\n\n## 6. [PHP \u0026 Scripting](php-scripting.md)\n\n- [PHP Logger](php-scripting.md/#php-logger)\n- [Always Show Second Bar in TinyMCE](php-scripting.md/#always-show-second-bar-in-tinymce)\n- [Switch Post Type](php-scripting.md/#switch-post-type)\n\n## 7. [WP Config](wp-config.md)\n\n- [Change Table Prefixes](wp-config.md/#change-table-prefixes)\n- [Enable the Wordpress Debugger](wp-config.md/#enable-the-wordpress-debugger)\n- [Disable the theme and plugin editor](wp-config.md/#disable-the-theme-and-plugin-editor)\n- [Moving wp-content Directory](wp-config.md/#moving-wp-content-directory)\n- [Limiting HTTPS requests](wp-config.md/#limiting-https-requests)\n\n## 8. [Performance Optimization](performance-optimization.md)\n\n- [Load heavy 3rd-party scripts later for better performance](performance-optimization.md/#load-heavy-3rd-party-scripts-later-for-better-performance)\n- [Set custom favicon on admin pages](performance-optimization.md/#set-custom-favicon-on-admin-pages)\n- [Disable the message - JQMIGRATE: Migrate is installed, version 1.4.1](performance-optimization.md/#disable-the-message---jqmigrate-migrate-is-installed-version-141)\n- [Empty Trash Automatically](performance-optimization.md/#empty-trash-automatically)\n\n## 9. [WooCommerce modifications](woocommerce-modifications.md)\n\n- [Deactivate some WooCommerce Checkout Fields](woocommerce-modifications.md/#deactivate-some-woocommerce-checkout-fields)\n- [Restricting Access to Pages Based on WooCommerce Purchases](woocommerce-modifications.md/#restricting-access-to-pages-based-on-woocommerce-purchases)\n- [Rounding prices to .99](woocommerce-modifications.md/#rounding-prices-to-99)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgkanev%2Fawesome-wordpress-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgkanev%2Fawesome-wordpress-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgkanev%2Fawesome-wordpress-functions/lists"}