MemberPress: Move “Upgrade” Button to after Subscriptions Tab
add_action(‘wp_footer’, function() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action(‘wp_footer’, function() { ?>Continue reading
add_action(‘wp_head’, function() { ?>Continue reading
/** * Display featured images of the current user’s active memberships * Add the [membership_thumbnail] shortcode to display the featured images of all active memberships of the current user. */ function custom_membership_thumbnail_shortcode() { if ( !is_user_logged_in() ) return; $user =…Continue reading
/** * Check Appointments Table Data * Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-19135 * This PHP function checks the `iks_apt_inspection_db` database table to determine * if any rows of data are present. It returns a simple string response indicating * whether…Continue reading
add_filter( ‘mepr_custom_cancel_link’, function( $link, $sub ) { // Get the subscription start time as a timestamp $subscription_start = strtotime( $sub->created_at ); // Get the current time as a timestamp $current_time = time(); // Calculate the number of months passed since…Continue reading
function avia_remove_wc_currency_symbol( $currency_symbol, $currency ) { $currency_symbol = ”; if ( is_cart() || is_checkout() || is_wc_endpoint_url(‘order-received’)) $currency_symbol = ‘€’; return $currency_symbol; } add_filter(‘woocommerce_currency_symbol’, ‘avia_remove_wc_currency_symbol’, 10, 2);Continue reading
/* Control the Cookie for the Password Addon * * @link https://enviragallery.com/docs/how-to-control-the-cookie-for-the-password-addon/ */ add_filter(‘envira_password_protection_time_limit’, ‘test_envira_password_protection_time_limit’, 10, 3); function test_envira_password_protection_time_limit( $time_limit, $post, $data ) { // note: you can use $post and $data to individually set time limit based on post…Continue reading
/* Change the Image Counter text * * @link https://enviragallery.com/docs/how-to-change-the-image-counter-text/ */ add_filter( ‘envirabox_theme_image_counter’, ‘test_envirabox_theme_image_counter’, 10, 3 ); function test_envirabox_theme_image_counter( $html, $theme, $data ) { //Replace Video with your own label for the counter return str_replace(‘Image’, ‘Video’, $html); }Continue reading
/* Change the Homepage URL inside Envira Breadcrumbs * * @link https://enviragallery.com/docs/how-to-change-the-homepage-url-inside-envira-breadcrumbs/ */ add_filter( ‘envira_breadcrumbs_data’, ‘test_envira_breadcrumbs_data’, 10, 5 ); function test_envira_breadcrumbs_data( $breadcrumbs, $album_id, $gallery_id, $separator, $album_post_id ) { //Change the title and url to your own $breadcrumbs[0][‘title’] = ‘Envira Gallery…Continue reading
/* Display Adsense Ads inside your gallery images lightbox * * @link https://enviragallery.com/docs/display-adsense-ads-in-lightbox/ */ add_filter( ‘envirabox_inner_below’, ‘envira_add_ads’, 11, 2 ); function envira_add_ads( $template, $data ){ //Replace my-ad-script-here with your actual Adsense Ad script $template .=’ my-ad-script-here ‘; return $template; }Continue reading