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
| // when you're trying to use `position:sticky` on an element | |
| // you'll have trouble if any parent/ancestor element has | |
| // overflow set to anything other than "visible" (such as: auto,hidden,overlay,scroll) | |
| // & turns out if a parent is `display:flex` it might need some love | |
| // (to remedy this you can set the `align-self` of your sticky element) | |
| // see here for how the display & align-self properties affect: http://bit.ly/2ZaRu4o | |
| // so, to find those troublesome parents... | |
| // copy & paste this into Chrome Inspector/Dev Tools console | |
| // (and be sure to change the #stickyElement below, if needed) |
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 | |
| /* | |
| * | |
| * ALLOW USER TO EDIT POST IF THEY ARE SELECTED AS THE PM | |
| * Preferred way would be to use `user_has_cap` - see: | |
| * - https://wordpress.stackexchange.com/a/360990/5380 | |
| * - https://developer.wordpress.org/reference/hooks/user_has_cap/ | |
| * However, WordPress has a nasty long standing issue with this line: | |
| * - https://bit.ly/3I72jOn | |
| * Where it forces a check to make sure the author is current user, which prevents any efforts to customize capabilities by using a `user_has_cap` filter. The bug is documented here: |
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 | |
| /** | |
| * Title: See WordPress Database Inside WP-Admin [SnipSnip.pro] | |
| * Description: A simple admin tool to view all database tables, inspect their columns, and preview a few rows of data. No editing or destructive operations — just safe, read-only access for administrators. | |
| * Version: 1.0.0 | |
| * Author: Brandon Pfeiffer | |
| * Last Updated: 2025-11-07 | |
| * Blog URL: https://snipsnip.pro/s/951 | |
| * Requirements: WordPress 6.0+, Administrator role | |
| * License: GPL v2 or later |
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 | |
| /** | |
| * Title: WordPress Secure File Editor with Theme.json Support | |
| * Description: Adds a comprehensive file editor to WordPress admin for editing theme files, plugin files, and text-based media. Includes special support for theme.json editing with syntax validation and a modern interface with security controls. | |
| * Version: 2.3.0 | |
| * Author: SnipSnip Pro | |
| * Last Updated: 2025-10-30 | |
| * Blog URL: https://snipsnip.pro/s/922 | |
| * Requirements: WordPress 5.9+, PHP 7.4+ | |
| * License: GPL v2 or later |
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 | |
| /** | |
| * Title: Add GPS Coordinates Column to WordPress Media Library (Best Version) | |
| * Description: Extracts and displays GPS coordinates from image EXIF data in the media library table view. Robust extraction (multiple fallbacks), developer-configurable UI, admin notice, and copy-to-clipboard functionality. | |
| * Version: 1.6.0 | |
| * Author: brandonjp.com | |
| * Last Updated: 2025-06-08 | |
| * Blog URL: http://snipsnip.pro/880 | |
| * Requirements: WordPress 5.0+ | |
| * License: GPL v2 or later |
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
| /** | |
| * Auto-select 1 ticket when only one tier is available | |
| * Version: 1.0.0 | |
| */ | |
| (function() { | |
| 'use strict'; | |
| function autoSelectSingleTier() { | |
| // Find all ticket selection containers |
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
| /* | |
| * Recommended Schema.org Implementation for CrowdWork Events | |
| * Version: 1.0.0 | |
| * | |
| * This script intercepts the API call made by embed.js to generate | |
| * schema.org markup immediately when event data becomes available. | |
| * Place this script BEFORE the embed.js script tag. | |
| */ | |
| // Configuration - UPDATE THESE VALUES FOR YOUR THEATRE |
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 | |
| /** | |
| * Title: Enhanced WordPress Post Inspector with Admin Controls [SnipSnip.pro] | |
| * Description: A comprehensive debugging tool that displays post metadata, SEO information, and WordPress data in a floating panel. Features configurable position, admin settings, light/dark themes, enhanced data extraction, and security controls for developers. | |
| * Version: 3.2.1 | |
| * Author: Brandon Pfeiffer | |
| * Last Updated: 2025-07-01 | |
| * Blog URL: https://snipsnip.pro/s/884 | |
| * Gist URL: https://gist.github.com/brandonjp/025592669bce65f7031a00f8b04d5c97 | |
| * Code Snippets Cloud: https://codesnippets.cloud/snippet/brandonjp/WordPress-Post-541 |
NewerOlder