Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Bryan Sayler bryansayler

🎯
Focusing
View GitHub Profile
@bryansayler
bryansayler / my_pmpromrss_feeds.php
Created March 19, 2021 04:15 — forked from messica/my_pmpromrss_feeds.php
pmpromrss_feeds filter example
View my_pmpromrss_feeds.php
<?php
/*
* PMPro RSS Extra Feeds Example
*
* Extra feeds format:
* $feeds["Label"] = Feed URL
*
* learn more about feed URLs at http://codex.wordpress.org/WordPress_Feeds
*/
@bryansayler
bryansayler / my_fix_wpelogin.php
Created March 19, 2021 04:00 — forked from ideadude/my_fix_wpelogin.php
Make sure to add the wpe-login parameter to the lostpassword URL.
View my_fix_wpelogin.php
<?php
/**
* Make sure to add the wpe-login parameter to the lostpassword URL.
*/
function my_fix_wpelogin( $url ) {
$url = add_query_arg( 'wpe-login', true, $url );
return $url;
}
add_filter( 'lostpassword_url', 'my_fix_wpelogin' );
@bryansayler
bryansayler / keybase.md
Created February 14, 2021 22:45
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am bryansayler on github.
  • I am bryansayler (https://keybase.io/bryansayler) on keybase.
  • I have a public key ASCvs4wNf9zpXqcVW8EsJZLKBB9id5uOZaqBX9rktGqR5go

To claim this, I am signing this object:

@bryansayler
bryansayler / content-espresso_events-shortcode.php
Created November 12, 2020 01:30 — forked from joshfeck/content-espresso_events-shortcode.php
Example of a custom template for the [ESPRESSO_EVENTS] shortcode. You can upload this to your WP child theme or into /wp-content/uploads/espresso/templates
View content-espresso_events-shortcode.php
<?php
/**
* This template will display a list of events - copy it to your theme folder
*
* @ package Event Espresso
* @ author Seth Shoultes
* @ copyright (c) 2008-2013 Event Espresso All Rights Reserved.
* @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing *
* @ link http://www.eventespresso.com
* @ version 4+
@bryansayler
bryansayler / functions.php
Created March 4, 2020 07:23
Add Featured Images to WordPress Feeds
View functions.php
<?php
function ww_rss_post_thumbnail($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = get_the_post_thumbnail($post->ID) . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'ww_rss_post_thumbnail');
@bryansayler
bryansayler / functions.php
Created March 4, 2020 07:20
WordPress Shortcode - Output Current Year
View functions.php
<?php
function ww_current_year_shortcode() {
$current_year = date('Y');
return $current_year;
}
add_shortcode('current-year', 'ww_current_year_shortcode');