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 | |
| /** | |
| * Summit abilities for the WordPress Abilities API. | |
| * | |
| * @package Summit | |
| * @author Michael Mizner | |
| * @license GNU General Public License v3 | |
| * @link https://logocentric.net/ | |
| */ |
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: Custom Transcoder (WP Cron + Attachment Update + Email + UI Button) | |
| */ | |
| // 1. Schedule transcoding on MOV upload | |
| add_filter('wp_handle_upload', function($upload) { | |
| $ext = strtolower(wp_check_filetype($upload['file'])['ext']); | |
| if ($ext !== 'mov') return $upload; | |
| wp_schedule_single_event(time() + 10, 'custom_transcoder_convert_mov', [$upload]); |
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
| <?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 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: Updates Controller | |
| * Description: Security upgrades and custom settings | |
| * Version: 1.0.0 | |
| * License: GPL3+ | |
| */ | |
| namespace MustUse\CustomSettings; |
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
| 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/slack@3.3.0 | |
| commands: | |
| setup: | |
| description: "Setup our build" |
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
| name: Deploy! | |
| on: | |
| push: | |
| branches: | |
| - production | |
| - release/* | |
| - feature/* | |
| - bug/* | |
| jobs: | |
| build: |
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 view; | |
| function enable_by_date( $can_edit, $post ) { | |
| if ( empty( $post->ID ) ) { | |
| return $can_edit; | |
| } |
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: Remote Images | |
| */ | |
| if(!in_array($_SERVER['SERVER_NAME'], ['EXAMPLELOCALDOMAIN.test', 'ANOTHEREXAMPLE.test'])) { | |
| 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 | |
| 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 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 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' ] ); |
NewerOlder