/** * 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
function wpcode_snippet_add_slug_body_class( $classes ) { global $post; if ( isset( $post ) ) { $classes[] = $post->post_type . ‘-‘ . $post->post_name; } return $classes; } add_filter( ‘body_class’, ‘wpcode_snippet_add_slug_body_class’ );Continue reading
/* Change WooCommerce Archive products number per page */ add_filter( ‘loop_shop_per_page’, ‘my_new_products_per_page’, 9999 ); function my_new_products_per_page( $pr_per_page ) { $pr_per_page = 16; return $pr_per_page; }Continue reading
function wpcode_snippets_change_read_more( $read_more, $read_more_text ) { // Edit the line below to add your own “Read More” text. $custom_text = ‘Read the whole post’; $read_more = str_replace( $read_more_text, $custom_text, $read_more ); return $read_more; } add_filter( ‘the_content_more_link’, ‘wpcode_snippets_change_read_more’, 15, 2 );Continue reading
add_filter( ‘excerpt_length’, function ( $length ) { // Number of words to display in the excerpt. return 40; }, 500 );Continue reading