bonus tip: for more darkness > https://darkreader.org/
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\Forms\Components; | |
use Filament\Forms\Components\Group; | |
class BlockSettings extends Group | |
{ | |
protected string $view = 'filament.forms.components.block-settings'; |
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\Filament\Resources\Trip; | |
//... | |
class PlaceResource extends Resource | |
{ | |
public static function table(Table $table): Table | |
{ | |
return $table |
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 { registerBlockType } from '@wordpress/blocks'; | |
import { __ } from '@wordpress/i18n'; | |
import { InspectorControls } from "@wordpress/block-editor"; | |
import { PanelBody, SelectControl } from "@wordpress/components"; | |
registerBlockType( 'create-block/better-latest-posts', { | |
title: __( 'Better Latest Posts', 'create-block' ), | |
description: __( | |
'Example block written with ESNext standard and JSX support – build step required.', |
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 | |
/** | |
* Support for WEBP. | |
* | |
* @package myplugin | |
*/ | |
// Security. | |
if ( ! defined( 'ABSPATH' ) ) { | |
die( 'Sorry, you are not allowed to access this page directly.' ); |
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: WP CLI Test Stop Emails | |
* Plugin URI: https://github.com/salcode/stop-emails/issues/15 | |
* Description: Test plugin for <a href="https://github.com/salcode/stop-emails/issues/15">Issue 15</a> | |
* Author: Sal Ferrarello | |
* Author URI: https://salferrarello.com/ | |
* Text Domain: wp-cli-test-stop-emails | |
* Domain Path: /languages | |
* Version: 0.1.0 |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @salcode | |
# ver 20180808 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
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 | |
add_action( 'the_content', 'test_add_query_arg_output' ); | |
function test_add_query_arg_output( $content ) { | |
return add_query_arg( | |
array( | |
'var_key' => 'key_value', | |
'another_var' => 'My Value' | |
), | |
home_url() |
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: AB Duplicate Blog | |
Author: Aaron Brazell | |
Version: 1.0-beta | |
Description: Duplicate a WordPress Multisite blog into a new one, transferring options, taxonomies, etc | |
*/ | |
class AB_Duplicate_Blog { |