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 { | |
--faded-blue: #7fbbb3; | |
--faded-aqua: #83c092; | |
--faded-green: #a7c080; | |
--faded-yellow: #dbbc7f; | |
--faded-orange: #e69875; | |
--faded-red: #e67e80; | |
--faded-purple: #B99CD6; | |
--light-blue: #5a93a2; |
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 | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox is already installed!" | |
exit 0 | |
fi | |
echo "Start installation..." |
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
vagrant plugin install vagrant-goodhosts --plugin-version 1.1.3 |
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('init', function (){ | |
global $wpdb; | |
$db_schema = 'zuse'; | |
$output = ''; | |
$networks = get_networks(); | |
$sites = array(); | |
$site_ids = array(); | |
$in_wp = array(); | |
$not_in_wp = array(); |
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 | |
composer update | |
for dir in {*,wp-content/plugins/*,wp-content/themes/*} | |
do | |
if [ -d $dir ] | |
then | |
pushd $dir | |
if [ -f composer.json ] |
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('after_setup_theme', function(){ | |
if(!get_option('soes_roles_created')){ | |
$site_owner_caps = get_role('administrator')->capabilities; | |
$unwanted_caps = array( | |
'activate_plugins' => true, | |
'delete_plugins' => true, | |
'install_plugins' => 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
/** Add target="_blank" to RSS block links */ | |
let rssTitles = document.getElementsByClassName('wp-block-rss__item-title'); | |
let len = rssTitles.length; | |
for(let i=0; i<len; i++) | |
{ | |
let link = rssTitles[i].getElementsByTagName('a')[0]; | |
link.target = "_blank"; | |
} |
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: 608 Software - Block REST API | |
* Plugin URI: https://608.software | |
* Description: Block REST API for users that are not logged in | |
* Author: 608 Software | |
* Version: 1.0.2 | |
* Author URI: https://608.software | |
* Text Domain: soes-block-rest-api |
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 | |
// Hide user info from sitemap XML | |
add_filter( 'wp_sitemaps_add_provider', function ($provider, $name) { | |
return ( $name == 'users' ) ? false : $provider; | |
}, 10, 2); |
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 Google Tag code which is supposed to be placed in the <head>. | |
function soes_inject_gtm_head() { | |
// Add GTM head tag | |
?> | |
<!-- Google Tag Manager --> | |
<!-- End Google Tag Manager --> | |
<?php |
NewerOlder