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 | |
| /** | |
| * Remove Slider Revolution metabox from certain post types. | |
| * This includes removing it from the top of ACF field groups. | |
| */ | |
| add_action('do_meta_boxes', function (): void { | |
| if (!is_admin()) { | |
| return; | |
| } |
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: Content Security Policy | |
| * Version: 1.0.1 | |
| * Description: Adds a Content-Security-Policy header to all non-admin requests. | |
| * Requires PHP: 8.1 | |
| * Requires at least: 5.7.0 | |
| * License: GNU General Public License v2 | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| * Original Inspiration: https://gist.github.com/westonruter/c8b49406391a8d86a5864fb41a523ae9 |
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 | |
| use Illuminate\Support\Str; | |
| /** | |
| * Add `rel="preload"` to font files found in the manifest | |
| */ | |
| add_filter('wp_head', function (): void { | |
| echo collect( | |
| json_decode(asset('manifest.json')->contents()) |
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 | |
| /** | |
| * Remove EXIF data from .jpg when uploaded. | |
| */ | |
| use Imagick; | |
| /** | |
| * Strip EXIF using Imagick, fallback to gd |
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
| import domReady from '@roots/sage/client/dom-ready'; | |
| /** | |
| * Alpine components | |
| */ | |
| import Alpine from 'alpinejs'; | |
| import * as components from './components/index.js'; | |
| /** |
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 | |
| /** | |
| * REST API | |
| * The SEO Framework | |
| * | |
| * @package scout_rest_theme | |
| * | |
| * List of title methods | |
| * @link https://github.com/sybrew/the-seo-framework/issues/202#issuecomment-412781194 | |
| * |
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
| module.exports = async (app) => { | |
| app | |
| /** | |
| * Application entrypoints | |
| * | |
| * Paths are relative to your resources directory | |
| */ | |
| .entry({ | |
| app: { | |
| import: ['@scripts/app', '@styles/app'], |
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: Block Editor Cleanup | |
| * Plugin URI: https://github.com/WordPress/gutenberg/issues/38299#issuecomment-1025520487 | |
| * Version: 1.0.1 | |
| * Description: Remove WP 5.9 default block editor styles when using Classic Editor | |
| * Author: joshuafredrickson | |
| * Author URI: https://joshuafredrickson.com | |
| * License: GNU General Public License v2 | |
| * License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
| namespace App\View\Composers; | |
| use Roots\Acorn\View\Composer; | |
| use Log1x\Navi\Facades\Navi; | |
| use function App\get_parent; | |
| use function acf_get_attachment; | |
| class NavHeader extends Composer |
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
| curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
| chmod +x wp-cli.phar | |
| mkdir ~/bin | |
| mv wp-cli.phar ~/bin/wp |