No longer kept up to date.
Please see Sridhar's fork.
| <?php | |
| /** | |
| * Add Column Classes to Display Posts Shortcodes | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/code/add-column-classes-to-display-posts-shortcode | |
| * | |
| * Usage: [display-posts columns="2"] | |
| * | |
| * @param array $classes | |
| * @param object $post |
| <?php | |
| /* | |
| * Check the URL of the WordPress login | |
| * page for a specific query string | |
| * | |
| * assumes login string is | |
| * http://mysite.com/wp-login.php?question=answer | |
| */ | |
| function rkv_login_stringcheck() { |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
No longer kept up to date.
Please see Sridhar's fork.
| function doGet() { | |
| // you only need to modify the next six lines of this code then publish web app. Replace the XXXX's with your info | |
| var email = 'XXXXXXXXXX'; //what you use to login to nest | |
| var password = 'XXXXXXX' ////what you use to login to nest | |
| var State = 'XX'; // WeatherUnderground State Name. 2 letter State name or Country ID | |
| var City = 'XXXXXXXXX'; // Enter your WeatherUnderground City Name. Or your local station ID. Should look like this 'pws:localID' | |
| var APIKey = 'XXXXXXXXXXXX' // get your free WeatherUnderground APIKey and enter it here | |
| var sheetid = 'XXXXXXXXXXXXXXXXXX'; //on your spreadsheet url its everything between /d/ <sheet id> /edit | |
| /* to publish web app just: |
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Create a Yoast SEO sitemap for a custom post type | |
| * Credit: Team Yoast | |
| * Last Tested: Unknown | |
| * Documentation: https://developer.yoast.com/features/xml-sitemaps/api/#add-a-custom-post-type | |
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | |
| * HOW TO USE | |
| * Replace TYPE with your custom type |
This is an incomplete list of resources including courses and individuals who publish content that has helped me grow as a web developer and designer. Many of these resources are WordPress-specific as that is my current area of specialization. This list will grow over time. If you've got something to add, send me a link @kevinwhoffman and I'll check it out!
| <?php | |
| function expand_access_subscription_downloads( $is_download_permitted, $subscription ) { | |
| if ( $subscription->has_status ( 'cancelled', 'expired' ) ) { | |
| return true; | |
| } | |
| return $is_download_permitted; | |
| } |