woocommerce_product_options_pricing
woocommerce_product_options_downloads
woocommerce_product_options_tax
woocommerce_product_options_general_product_page
| <?php | |
| /** | |
| * SVG class. | |
| * | |
| * This is an SVG system for displaying SVGs in themes. | |
| * | |
| * @package Luxe | |
| * @author Brett Mason <[email protected]> | |
| * @copyright Copyright (c) 2018, Brett Mason | |
| * @link https://github.com/brettsmason/luxe |
| name: example | |
| recipe: wordpress | |
| proxy: | |
| appserver_nginx: | |
| - example.lndo.site | |
| mailhog: | |
| - mail.example.lndo.site | |
| theme: | |
| - localhost:3000 |
sudo apt-get update && sudo apt-get upgrade
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
| tar xvzf imagick-3.4.4.tgz |
| <?php | |
| /** | |
| * Product post type | |
| * | |
| * @package Pulsar | |
| */ | |
| namespace Pulsar\PostTypes; | |
| use Pulsar\Contracts\Bootable; |
This guide is focused around WordPress development and the requirements of using that day-to-day.
These can be installed in VS Code: Launch VS Code, Quick Open (CMD+P), paste the following command, and press enter.
ext install esbenp.prettier-vscode stylelint.vscode-stylelint dbaeumer.vscode-eslint
| /// Check if a string contains a number. | |
| @function string-is-number($string) { | |
| // Matrices | |
| $numbers: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9'; | |
| @for $i from 1 through str-length($string) { | |
| $character: str-slice($string, $i, $i); | |
| $index: index($numbers, $character); | |
| <?php | |
| add_action( 'render_block', [ $this, 'render_link_toolbar' ], 5, 2 ); | |
| /** | |
| * Block link. | |
| * | |
| * @param mixed $block_content The block content. | |
| * @param array $block The block data. | |
| * | |
| * @return mixed Returns the new block content. |