The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
# Update Timezone for all sites in Multitise: | |
wp site list --field=url | xargs -n1 -I % wp --url=% option update timezone_string "America/Los_Angeles" | |
# Regenerate All Thumbnails everywhere! | |
wp site list --field=url | xargs -n1 -I % wp --url=% media regenerate --skip-delete --only-missing --yes | |
# Delete user from Multisite. Reassign should be wp-admin's user ID. 83 is for forms.bellevuecollege.edu | |
wp site list --field=url | xargs -n1 -I % wp --url=% user delete 38 --reassign=83 | |
wp user delete 38 --network |
openapi: 3.0.1 | |
info: | |
title: BC Data API | |
description: Get BC Data! | |
version: "1.3" | |
servers: | |
- url: 'https://www2.bellevuecollege.edu' | |
paths: | |
/data/api/v1/classes/{quarter}/{subject}: | |
get: |
{ | |
"text": " *alertDetails* - ID: *monitorID*. URL: [*monitorURL*](*monitorURL*)", | |
"title": "*monitorFriendlyName* is *alertTypeFriendlyName*" | |
} |
sudo chown -R www-data:www-data wpm/ |
<% if rs("UnusualActionID") ="XX" then | |
response.write " Please contact the Cashier's Office to discuss the block on your records." | |
elseif rs("UnusualActionID") ="CE" Then | |
response.write " Please contact the Career Education Options Office to discuss the block on your records at 425-564-4035" | |
elseif rs("UnusualActionID") ="CM" then | |
response.write " Please contact the Registration Office for further information at 425-564-2222 or [email protected]" | |
elseif rs("UnusualActionID") ="CO" then | |
response.write " Please contact the Registration Office for further information at 425-564-2222 or [email protected]" | |
elseif rs("UnusualActionID") ="WR" then | |
response.write " Please contact the Worker Retraining Office in B131 for further information at 425-564-4054" |
#!/bin/bash | |
# current Git branch | |
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
# v1.0.0, v1.5.2, etc. | |
versionLabel=v$1 | |
# establish branch and tag name variables | |
devBranch=develop |
/* Test functiom to disable all Gravity Forms */ | |
add_filter( 'gform_pre_render', 'disable_all_forms' ); | |
function disable_all_forms( $form ) { | |
//$form = htmlentities($form); | |
echo '<pre>'; | |
print_r($form); | |
echo '</pre>'; | |
$form['title'] = 'This form is temporarily disabled'; |
<?php | |
/* | |
Plugin Name: Email Fixes | |
Plugin URI: http://www.bellevuecollege.edu | |
Description: This plugin prevents 'password changed' emails in response to CAS updating data. Workaround for bug introduced in WP 4.3. | |
Author: Bellevue College Information Technology Services | |
Version: 1.1 | |
Author URI: http://www.bellevuecollege.edu | |
*/ |
function clubs_rewrite_flush() { | |
// First, we "add" the custom post type via the above written function. | |
// Note: "add" is written with quotes, as CPTs don't get added to the DB, | |
// They are only referenced in the post_type column with a post entry, | |
// when you add a post of this CPT. | |
// Both the custom post type and the custom taxonomy need to be called in this instance | |
create_club_post_type(); | |
create_clubs_taxonomies(); |