-
Wine Enthusiast, Digitally Cultured
- NY
-
04:57
(UTC -05:00)
Pinned Loading
-
set-font-size
set-font-size PublicQuick and dirty script to set the font size for common elements from the front-end. Originally created to help designers & stake holders see what font sizes worked best from different sized screens.
HTML 1
-
WordPress: SQL query to find all pag...
WordPress: SQL query to find all pages that use a certain page template. Can use WP CLI to run this query without have to log into cPanel/phpMyAdmin. Need to replace <wp_prefix_> & <page-template.php> to match your setup. 1SELECT * FROM `<wp_prefix_>postmeta` WHERE `meta_key` LIKE '_wp_page_template' AND `meta_value` LIKE '<page-tempate.php>'
-
WP CLI script to update active plugi...
WP CLI script to update active plugins, and commit each update individually. 99% percent stolen from https://markjaquith.wordpress.com/2018/02/12/updating-plugins-using-git-and-wp-cli/, (ever so slightly) adapted to my own personal workflow 1for plugin in $(wp plugin list --update=available --status=active --field=name);
2do
3TITLE=$(wp plugin get $plugin --field=title)
4wp plugin update $plugin &&
5VERSION=$(wp plugin get $plugin --field=version)
-
gitignore to track entire WP site. E...
gitignore to track entire WP site. Excludes VS Code configs (.vscode/), my own local configs (info/), some common filetypes I find in projects I don't need to track, and some common BU/cache locations from popular plugins 1.vscode/
2.well-known/
3info/
45*/*/error_log
-
mailchimp-wp
mailchimp-wp PublicForked from drewm/mailchimp-api
Super-simple, minimum abstraction MailChimp API v3 wrapper, in PHP
PHP
-
.htaccess to host WordPress in a sub...
.htaccess to host WordPress in a subdirectory. Some shared hosting won't let your primary domain be assigned to a subdirectory - this will help to get around that. 1# replace <domainname> with your domain name
2# replace <directoryname> with the name of the directory where WordPress is located
34<IfModule mod_rewrite.c>
5RewriteEngine on
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.