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 Support for EditorsKit Plugin | |
* | |
* @package Jarvis | |
* @subpackage EditorsKit | |
* @author Jeffrey Carandang <jeffreycarandang.com> | |
* @link https://editorskit.com/ | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License | |
*/ |
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
/** | |
* External Dependencies | |
*/ | |
import classnames from 'classnames'; | |
/** | |
* WordPress Dependencies | |
*/ | |
const { __ } = wp.i18n; | |
const { addFilter } = wp.hooks; |
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
/** | |
* WordPress Dependencies | |
*/ | |
const { __ } = wp.i18n; | |
const { addFilter } = wp.hooks; | |
const { Fragment } = wp.element; | |
const { InspectorAdvancedControls } = wp.editor; | |
const { createHigherOrderComponent } = wp.compose; | |
const { ToggleControl } = wp.components; |
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
.is-style-circular-image img{ | |
border-radius: 9999px !important; | |
object-fit: cover; | |
overflow: hidden; | |
} | |
.is-style-rounded-corners img{ | |
border-radius: 0.5em; | |
overflow: hidden; | |
} |
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
/** | |
* WordPress dependencies | |
*/ | |
const { __ } = wp.i18n; | |
const { Fragment } = wp.element; | |
const { toggleFormat } = wp.richText; | |
const { RichTextToolbarButton, RichTextShortcut } = wp.editor; | |
const { registerFormatType } = wp.richText; | |
/** |
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
/** | |
* WordPress dependencies | |
*/ | |
const { __ } = wp.i18n; | |
const { registerBlockStyle } = wp.blocks; | |
registerBlockStyle( 'core/image' , { | |
name: 'default', | |
label: __( 'Default' ), | |
isDefault: true, |
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: My Custom Shortcodes | |
* Plugin URI: https://wordpress.org/plugins/my-custom-shortcodes/ | |
* Description: Custom shortcode for plugin development talk | |
* Version: 1.0 | |
* Requires at least: 5.2 | |
* Requires PHP: 7.2 | |
* Author: Jeffrey Carandang | |
* Author URI: https://jeffreycarandang.com/ |
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
/** | |
* External Dependencies | |
*/ | |
import classnames from 'classnames'; | |
/** | |
* Add custom element class in save element. | |
* | |
* @param {Object} extraProps Block element. | |
* @param {Object} blockType Blocks object. |
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
wp.apiRequest( { path: '/phpbits/test-blocks/v1/user-roles/' } ) | |
.then( | |
( obj ) => { | |
console.log( obj ); | |
} | |
); |
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
$cities = array( | |
'ALABAMA'=> | |
array("ABBEVILLE","ADAMSVILLE","ADDISON","AKRON","ALABASTER","ALBERTVILLE","ALEXANDER CITY","ALEXANDRIA","ALICEVILLE","ALLGOOD","ALTOONA","ANDALUSIA","ANDERSON","ANNISTON","ARAB","ARDMORE","ARGO","ARITON","ARLEY","ASHFORD","ASHLAND","ASHVILLE","ATHENS","ATMORE","ATTALLA","AUBURN","AUTAUGAVILLE","AVON","BABBIE","BAILEYTON","BANKS","BAY MINETTE","BAYOU LA BATRE","BEAR CREEK","BEATRICE","BEAVERTON","BELK","BENTON","BERRY","BESSEMER","BILLINGSLEY","BIRMINGHAM","BLACK","BLOUNTSVILLE","BLUE MOUNTAIN","BLUE RIDGE","BLUE SPRINGS","BOAZ","BOLIGEE","BON AIR","BRANCHVILLE","BRANTLEY","BRENT","BREWTON","BRIDGEPORT","BRIGHTON","BRILLIANT","BROOKSIDE","BROOKWOOD","BRUNDIDGE","BUTLER","BYNUM","CAHABA HEIGHTS","CALERA","CAMDEN","CAMP HILL","CARBON HILL","CARDIFF","CAROLINA","CARROLLTON","CASTLEBERRY","CEDAR BLUFF","CENTER POINT","CENTRE","CENTREVILLE","CHALKVILLE","CHATOM","CHELSEA","CHEROKEE","CHICKASAW","CHILDERSBURG","CITRONELLE","CLANTON","CLAY","CLAYHATCHEE","CLAYTON","CLEVELAND","CLIO |