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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Run Lighthouse checks | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "12 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 | |
function pggh_post_type_filter( $use_block_editor, $post_type ) { | |
if ( 'page' === $post_type ) { | |
return false; | |
} | |
return $use_block_editor; | |
} | |
add_filter( 'use_block_editor_for_post_type', 'pggh_post_type_filter', 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
cy | |
.window() | |
.its('wp') | |
.then(wp => { | |
wp.blocks.getBlockTypes().forEach(({ name }) => { | |
wp.data.dispatch('core/editor').insertBlocks( wp.blocks.createBlock(name, {}) ); | |
}); | |
}); |
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: Paul Test | |
*/ | |
namespace PaulGibbs; | |
use Generator; | |
use WP_Query; |
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: Render a specific Post on a Taxonomy archive page. | |
* Plugin Author: Paul Gibbs. | |
* License: public domain | |
*/ | |
namespace paul; | |
use WP_Post; |
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":1,"resource":"file:///Users/paulgibbs/Sites/platform/my-platform/.gitignore","entries":[{"id":"TIY3","timestamp":1650021010387}]} |
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 | |
/** | |
* Hello World. | |
*/ | |
namespace HelloWorld; | |
$_tests_dir = getenv( 'WP_TESTS_DIR' ) ?: getenv( 'WP_PHPUNIT__DIR' ); | |
require_once $_tests_dir . '/includes/functions.php'; |
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: "3" | |
services: | |
wordpress: | |
container_name: "docker_wordpress_1" | |
depends_on: | |
- db | |
- memcached | |
- selenium | |
environment: |
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
hi |
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
default: | |
suites: | |
default: | |
contexts: | |
- PaulGibbs\WordpressBehatExtension\Context\WordpressContext | |
- Behat\MinkExtension\Context\MinkContext | |
- PaulGibbs\WordpressBehatExtension\Context\ContentContext | |
- PaulGibbs\WordpressBehatExtension\Context\DashboardContext | |
- PaulGibbs\WordpressBehatExtension\Context\SiteContext | |
- PaulGibbs\WordpressBehatExtension\Context\UserContext |
NewerOlder