This is a list of commands or command sets to perform the given task with PHP's package manager.
composer clearcache
composer selfupdate
/** | |
* Change case of text to common programming language cases. | |
* @param {string} text - Text to change case. May contain spaces, special characters, etc. | |
* @param {string} caseType - Type of case to change to. Possible values are: | |
* - camelCase | |
* - PascalCase | |
* - snake_case | |
* - kebab-case | |
* - CONSTANT_CASE | |
* - TitleCase |
import fs from 'fs'; | |
export default function includeHtml(mode) { | |
return { | |
name: 'insert-views', | |
/** | |
* Replace HTML include comments with the content of the included file. | |
* @param {string} html | |
* @returns {string} | |
* @example <!--#include file="header.html" --> |
/secrets | |
/persist |
# This file is for unifying the coding style for different editors and IDEs | |
# editorconfig.org | |
# WordPress Coding Standards | |
# https://make.wordpress.org/core/handbook/coding-standards/ | |
root = true | |
[*] | |
charset = utf-8 |
<?php | |
/** | |
* Serves as a registry for all objects that need to be accessed globally throughout the | |
* plugin. | |
*/ | |
class Registry | |
{ | |
/** |
if ( ! function_exists( 'remove_unneeded_account_options' ) ) { | |
/** | |
* Removes user settings sections by their heading element pattern. | |
*/ | |
function remove_unneeded_account_options( $subject ) { | |
$subject = preg_replace( '#<h2>Personal Options</h2>.+?/table>#s', '', $subject, 1 ); | |
$subject = preg_replace( '#<h2>About Yourself</h2>.+?/table>#s', '', $subject, 1 ); | |
$subject = preg_replace( '#<h2>Author Archive Settings</h2>.+?/table>#s', '', $subject, 1 ); | |
$subject = preg_replace( '#<h2>Author Archive SEO Settings</h2>.+?/table>#s', '', $subject, 1 ); | |
$subject = preg_replace( '#<h2>Layout Settings</h2>.+?/table>#s', '', $subject, 1 ); |
<a class="lightbox-open lightbox-button" href="javascript:;">Click to open lightbox</a> | |
<div class="lightbox hidden" data-lb-open> | |
<div class="lightbox-viewport-outer"> | |
<div class="lightbox-viewport"> | |
<div class="lightbox-viewport-inner"> | |
<div class="lightbox-title">A Wonderful Title</div> | |
<div class="lightbox-content lightbox-content-scroll-small"> | |
<div class="lightbox-md-6 lightbox-sm-12 lightbox-content-scroll-medium"><code id="demo"></code></div> | |
<div class="lightbox-md-6 lightbox-sm-12 lightbox-content-scroll-medium"> | |
<form name="inquiry" id="inquiry" role="form"> |
add_action( 'in_admin_header', 'add_profile_theme_color_picker' ); | |
function add_profile_theme_color_picker() { | |
?><div id="ui-picker"> | |
<div><input type="color" id="base-color" name="base-color" value="#23282d" /> <label for="base-color">Base color</label></div> | |
<div><input type="color" id="highlight-color" name="highlight-color" value="#0073aa" /> <label for="highlight-color">Highlight color</label></div> | |
<div><input type="color" id="notification-color" name="notification-color" value="#d54e21" /> <label for="notification-color">Notification color</label></div> | |
<div><input type="color" id="menu-submenu-text" name="menu-submenu-text" value="#0073aa" /> <label for="menu-submenu-text">Submenu Text color</label></div> | |
<script type="text/javascript"> | |
// Function for lightening or darkening colors according to how they are done in the wp-admin sass file. |