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
:root { | |
--wp-admin-theme-color: #007cba; | |
--wp-admin-theme-color-darker-10: #006ba1; | |
--wp-admin-theme-color-darker-20: #005a87; | |
} | |
#start-resizable-editor-section { | |
display: none; | |
} | |
.wp-block-audio figcaption { | |
margin-top: 0.5em; |
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 these two classes for EVERY colour you add */ | |
.has-COLOUR-background-color { | |
background-color: HEXCODE; | |
} | |
.has-COLOUR-color { | |
color: HEXCODE; | |
} |
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
/** | |
* Gulpfile. | |
* | |
* Workflow Supercharged | |
* | |
* Implements: | |
* 1. Live reloads browser with BrowserSync. | |
* 2. CSS: SCSS to CSS conversion, error catching, autoprefixing, sourcemaps, and CSS minification | |
* 3. JS: Concatenates & uglifies Vendor and Custom JS files. | |
* 4. Images: Minifies PNG, JPEG, GIF and SVG images. |
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 | |
/** | |
* Creates a shortcode [wo_is_role] that allows you to restrict anything inside to a particular role or roles. | |
* To use: [wo_is_role role="subscriber"] Put content here to show subscriber [/wo_is_role] | |
* To use with multiple roles: [wo_is_role role="contributor,subscriber"] Put content here to show contributors and susbcribers. [/wo_is_role] | |
* | |
* Works with ANY role, including all custom roles. | |
*/ |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
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
/// This mixin assumes mobile-first coding, and helps you respond to different breakpoints | |
/// from within each applicable selector. | |
/// It pulls breakpoints from a map of breakpoints set in _variables.scss ( but provided below in this gist ) | |
/// USAGE: | |
/// .entry-content { | |
/// @respond-to(river) { | |
/// width: 50% | |
/// } | |
/// } |
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_action("publish_post", "publication_notification"); | |
//add_action("save_post", "publication_notification"); | |
//add_action ( 'draft_to_publish', 'publication_notification', 10, 3); | |
function publication_notification($post_id) { | |
$post = get_post($post_id); | |
$coauthors = get_coauthors($post_id); |