adduser {{username}}
This file contains 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
<?xml version="1.0"?> | |
<ruleset name="My Custom Ruleset"> | |
<description>Custom ruleset for my PHP project</description> | |
<!-- exclude vendor --> | |
<exclude-pattern>vendor</exclude-pattern> | |
<!-- exclude WordPress core --> | |
<exclude-pattern>*/wp-includes/*</exclude-pattern> | |
<exclude-pattern>*/wp-admin/*</exclude-pattern> | |
This file contains 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: Updates Controller | |
* Description: Security upgrades and custom settings | |
* Version: 1.0.0 | |
* License: GPL3+ | |
*/ | |
namespace MustUse\CustomSettings; |
This file contains 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
version: 2.1 | |
# Environment Variables: https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables | |
# https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands | |
orbs: | |
slack: circleci/[email protected] | |
commands: | |
setup: | |
description: "Setup our build" |
This file contains 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
name: Deploy! | |
on: | |
push: | |
branches: | |
- production | |
- release/* | |
- feature/* | |
- bug/* | |
jobs: | |
build: |
This file contains 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 view; | |
function enable_by_date( $can_edit, $post ) { | |
if ( empty( $post->ID ) ) { | |
return $can_edit; | |
} |
This file contains 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: Remote Images | |
*/ | |
if(!in_array($_SERVER['SERVER_NAME'], ['EXAMPLELOCALDOMAIN.test', 'ANOTHEREXAMPLE.test'])) { | |
return; | |
} |
This file contains 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_filter('render_block', function ($block_content, $block) { | |
// Remove the block/timed-block from the rendered content. | |
if ('core/paragraph' === $block['blockName']) { | |
$block_content = "<div class='wp-block' data-blockType='{$block['blockName']}'>{$block_content}</div>"; | |
} | |
return $block_content; | |
}, 10, 2); |
This file contains 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 Pyxl\One\Models\FieldGroups; | |
use Pyxl\One\Models\PostTypes\Property as CPT; | |
class Property { | |
public static function init() { | |
$class = new self; | |
add_action( 'custom_metadata_manager_init_metadata', [ $class, 'register' ] ); |
This file contains 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
Use these in the GV search field. You will likely need to refresh/select all after each as you can only do ten messages at a time. | |
* Mark all SMS/Text Messages as Read | |
label:sms is:unread | |
* Mark all voicemails as Read | |
label:voicemail is:unread |
NewerOlder