- Settings
- [Global] (#global)
- [404 Detection] (#404)
- [Away Mode] (#away)
- [Banned Users] (#banned)
- [Brute Force Protection] (#brute)
- [Backup DB] (#backupdb)
- [File Change Detection] (#files)
- [Hide Login] (#hidelogin)
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
labelColor | |
secondaryLabelColor | |
tertiaryLabelColor | |
quaternaryLabelColor | |
systemFillColor | |
secondarySystemFillColor | |
tertiarySystemFillColor | |
quaternarySystemFillColor |
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
#!/bin/bash | |
# Get the required project variables | |
printf "Project name: " | |
read PROJECT_NAME | |
printf "Project folder name: " | |
read PROJECT_FOLDER | |
printf "Database Name: " |
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
const dashIcons = [ | |
{ value: 'menu', label: 'Menu' }, | |
{ value: 'dashboard', label: 'Dashboard' }, | |
{ value: 'admin-site', label: 'Admin Site' }, | |
{ value: 'admin-media', label: 'Admin Media' }, | |
{ value: 'admin-page', label: 'Admin Page' }, | |
{ value: 'admin-comments', label: 'Admin Comments' }, | |
{ value: 'admin-appearance', label: 'Admin Appearance' }, | |
{ value: 'admin-plugins', label: 'Admin Plugins' }, | |
{ value: 'admin-users', label: 'Admin Users' }, |
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
export default [ | |
{ value: 'admin-appearance', label: 'Admin Appearance' }, | |
{ value: 'admin-collapse', label: 'Admin Collapse' }, | |
{ value: 'admin-comments', label: 'Admin Comments' }, | |
{ value: 'admin-generic', label: 'Admin Generic' }, | |
{ value: 'admin-home', label: 'Admin Home' }, | |
{ value: 'admin-links', label: 'Admin Links' }, | |
{ value: 'admin-media', label: 'Admin Media' }, | |
{ value: 'admin-network', label: 'Admin Network' }, | |
{ value: 'admin-page', label: 'Admin Page' }, |
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
/** | |
* Returns the requested SVG icon. | |
* | |
* Returns FALSE if $svg is not set. | |
* | |
* @param string $svg The name of the SVG icon | |
* @return mixed The SVG icon | |
*/ | |
function prefix_get_svg( $svg ) { |
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
/* | |
Add this line to your wp-config.php file. I put it right above the "Authentication Unique Keys and Salts." comment block. | |
*/ | |
/** Disable the WP Admin Bar */ | |
define('BP_DISABLE_ADMIN_BAR', true); |
- Total Stylesheets
- The quantity of stylesheets it examined.
- Total Stylesheet Size
- Size in bytes of the stylesheet(s)
- Ideal: no real ideal, but smaller is better.
- Total Rules
- The quantity of CSS rules in the stylesheet(s).
- Ideal: no real ideal, but a smaller number here means a simpler stylesheet.
- Total Selectors
- The quantity of selectors in the stylesheet(s).
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
$forms = FrmForm::get_published_forms(); | |
$choices = array(); | |
foreach ( $forms as $form ) { | |
$choices[$form->id] = $form->name; | |
} | |
// Formidable Forms Select Field |
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
$homeposts = yourtheme_get_posts( 'post', array( 'category_name' => 'name_of_the_category', 'posts_per_page' => 1 ), 'homepage' ); | |
foreach ( $homeposts->posts as $homepost ) { | |
// process each post here | |
} | |
/** | |
* Returns a post object of the requested post type |