/* Adjust PROFILE COVER upload limit */ function bbp_cover_image_max_upload_file_size( $fileupload_maxk, $type ) { if ( ‘cover_image’ == $type ) { $fileupload_maxk = 10485760; // in bytes, 10MB } return $fileupload_maxk; } add_filter( ‘bp_attachments_get_max_upload_file_size’, ‘bbp_cover_image_max_upload_file_size’, 10,2 ); /* Adjust PROFILE AVATAR…Continue reading
/** * Displays the donation summary ( updated to show custom fields ) * * Override this template by copying it to yourtheme/charitable/donation-receipt/summary.php * * @author WP Charitable LLC * @package Charitable/Templates/Donation Receipt * @since 1.0.0 * @version 1.4.7 */…Continue reading
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
function as_upsell_shortcode() { $product_ids = array(18516, 31026, 31016,33988,34011,34017,51689,5179,51682,51684); // Updated product IDs ob_start(); echo ‘ ‘; echo ‘ ‘; foreach ($product_ids as $product_id) { $product = wc_get_product($product_id); if ($product) { echo ‘ ‘; // Image container echo ‘ ‘; echo…Continue reading
function prevent_plugin_update( $value ) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response[‘willers/willers.php’] ); } return $value; } add_filter( ‘site_transient_update_plugins’, ‘prevent_plugin_update’ );Continue reading
add_filter( ‘charitable_session_donation_amount’, ‘example_get_donation_amount_in_session’, 999, 2 ); function example_get_donation_amount_in_session( $amount = false, $campaign = false ) { // If the donation amount is not set in the session, return the default amount. // WARNING: Setting a default amount here will override…Continue reading
/* Change Admin Logo */ add_action( ‘login_head’, ‘rd_login_logo’ ); function rd_login_logo() { echo ‘ ‘; } /* Replace Link URL */ add_filter( ‘login_headerurl’, ‘rd_login_url’ ); function rd_login_url(){ return ‘https://rubberduckers.co.uk’; } /* Change login logo hover text */ add_filter( ‘login_headertext’, ‘rd_login_logo_title’…Continue reading