Met dank aan xAI's Grok.
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: Create release | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
runs-on: ubuntu-latest |
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
{ | |
"window.titleBarStyle": "native", | |
"workbench.colorCustomizations": { | |
"[Example Theme]": { | |
"sideBar.background": "#00000000" | |
} | |
}, | |
"apc.electron": { |
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 | |
/** | |
* There seems to be no option to disable the Mollie gateway based | |
* on the selected shipping method. This filter removes | |
* Mollie when the shipping method contains 'pickup'. | |
* | |
* @param array $available_gateways The available gateways. | |
* | |
* @return array | |
*/ |
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 | |
/** | |
* Class. | |
* | |
* @package a-package | |
*/ | |
/** | |
* Class. | |
*/ |
Just an example of a custom HTML-element (web component) that renders an external webpage (newsletter), demonstrating the external content is not impacted by the CSS on the page itself.
Idea from: https://sebastiandedeyne.com/embed-a-web-page-with-a-web-component-and-the-shadow-dom/
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 | |
/** | |
* Concept class. | |
*/ | |
class PdfTopPm | |
{ | |
public $popplerPath; | |
public $dpi = 72; | |
public $quality = 100; |
Within your widget, you can include a editor with a textarea and the class custom-widget-wp-editor
.
<textarea id="<?php echo $this->get_field_id( 'header' ); ?>" name="<?php echo $this->get_field_name( 'header' ); ?>" class="custom-widget-wp-editor"><?php echo $header; ?></textarea>
Make sure you include the JS-file within the widgets and customizer view.
/**
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 | |
function prefix_is_gutenberg_active() { | |
include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
$is_gutenberg = has_filter( 'replace_editor', 'gutenberg_init' ) || version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' ); | |
$is_classic_editor = is_plugin_active( 'classic-editor/classic-editor.php' ) && get_option( 'classic-editor-replace' ) === 'no-replace'; | |
if ( $is_gutenberg && ! $is_classic_editor ) { | |
return true; |
NewerOlder