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( 'elementor/widget/before_render_content', 'custom_render_button' ); | |
| /** | |
| * Adding a new attribute to our button | |
| * | |
| * @param \Elementor\Widget_Base $button | |
| */ | |
| function custom_render_button( $button ) { |
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 | |
| /** | |
| * Abstract Extension Class from which all others should be done | |
| */ | |
| if( ! defined( 'ABSPATH' ) ) { | |
| 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 | |
| namespace My_Plugin\API; | |
| /** | |
| * API Functions | |
| */ | |
| if( ! defined( 'ABSPATH' ) ) { | |
| 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
| class App extends React.Component { | |
| render() { | |
| return ( | |
| bla | |
| ) | |
| } | |
| } | |
| const element = <App /> |
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": "wordpress-search-react", | |
| "version": "1.0.0", | |
| "description": "Powering WordPress Search with React and REST API", | |
| "main": "assets/js/public.js", | |
| "scripts": { | |
| "build": "webpack", | |
| "watch": "webpack --watch", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, |
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
| /** | |
| * BLOCK: my-block | |
| * | |
| * Registering a basic block with Gutenberg. | |
| * Simple block, renders and saves the same content without any interactivity. | |
| */ | |
| // Import CSS. | |
| import './style.scss'; | |
| import './editor.scss'; |
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
| registerBlockType( 'cgb/block-guten-load-post', { | |
| // ... | |
| keywords: [ | |
| __( 'my-block — CGB Block' ), | |
| __( 'CGB Example' ), | |
| __( 'create-guten-block' ), | |
| ], | |
| attributes: { | |
| content: { |
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 | |
| /** | |
| * The file that defines the metaboxes used by the various custom post types | |
| * | |
| * @link https://www.wpdispensary.com | |
| * @since 1.0.0 | |
| * | |
| * @package WP_Dispensary | |
| * @subpackage WP_Dispensary/admin/post-types | |
| */ |
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 | |
| // ... Rest of the code | |
| class WPQR { | |
| // ... Rest of the code | |
| /** | |
| * Load everything |