MemberPress: Adding Credit Card and Expiry Information to Subscriptions Table
// Add the “Card/Expiry” column header function mepr_add_subscriptions_th($user, $subs) { ?> Card/ExpiryContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Add the “Card/Expiry” column header function mepr_add_subscriptions_th($user, $subs) { ?> Card/ExpiryContinue reading
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
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
/*Wordpress Sitemap deaktivieren BEGIN */ add_filter( ‘wp_sitemaps_enabled’, ‘__return_false’ ); /*Wordpress Sitemap deaktivieren END */ /*Wordpress Autoupdates deaktivieren BEGIN */ define( ‘AUTOMATIC_UPDATER_DISABLED’, true ); /*Wordpress Autoupdates deaktivieren END*/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