/** * After a user logs in, redirect them back to the page they * were on right before going to the login page. * * @see wp_login_form * @uses wp_get_referer * * @param array $args The default arguments that…Continue reading
This snippet has moved to https://github.com/Charitable/library/tree/master/forms/general/remove-form-fields.phpContinue reading
/** * The `charitable_login_form_args` filter allows you to set * the arguments that are passed to wp_login_form(). * * In this example, we change the URL that people are redirected * to after logging in through the form generated by…Continue reading
/** * Right after a donation is made, this sends the donation receipt to * the donor if the donation is pending AND it was made in offline mode. * * @param int $donation_id * @return boolean */ function en_send_donation_receipt_for_pending_offline(…Continue reading
/** * By default, the Donors widget & shortcode will only include donors with * Paid donations. With this snippet, you can make sure that * donors with Pending donations are also included. */ function ed_include_pending_donors_in_donors_widget_shortcode( $query_args ) { $query_args[‘status’]…Continue reading
/** * Filter the email footer text & link. * * @param string $text The default text. * @return string */ function ed_charitable_change_email_footer_text( $text ) { $text = ‘Your footer text’; $link = home_url(); return ‘‘ . $text . ‘Continue reading
add_filter( ‘tasty_recipes_default_author_name’, function() { return ‘Your New Default Author Name’; } );Continue reading
add_filter( ‘tasty_recipes_quick_links’, function( $links ) { $links[] = ‘Rate this Recipe‘; return $links; } );Continue reading
$u_time = get_the_time( ‘U’ ); $u_modified_time = get_the_modified_time( ‘U’ ); // Only display modified date if 24hrs have passed since the post was published. if ( $u_modified_time >= $u_time + 86400 ) { $updated_date = get_the_modified_time( ‘F jS, Y’ );…Continue reading
CSS.root /* Link */ #activity-stream .activity-header a{ font-size:14px !important; font-weight:900 !important; } /* Division */ #bp-nouveau-activity-form form > div:nth-child(5){ display:none; } /* Nouveau activity form */ #bp-nouveau-activity-form{ padding-left:5px; padding-right:5px; margin-left:1px; margin-right:3px; padding-bottom:23px; margin-bottom:-7px; } /* Stories user stories */ #buddypress…Continue reading