/** * Plugin Name: Hide Author and Date * Plugin URI: * Description: A simple plugin to hide the author and publish date on the front end. * Version: 1.0.1 * Author: * License: GPL2 */ // Make sure we…Continue reading
/** * MemberPress – Exclude Specific Custom Fields from Signup Forms * * This code hides selected custom fields on MemberPress registration forms * when a specific URL parameter is present. */ add_filter( ‘mepr_render_custom_fields’, function( $fields ) { global $post;…Continue reading
/** * MemberPress – Customize Unauthorized Messages By User Status * * Displays different unauthorized messages based on whether the user is logged in * and if they have any active subscriptions. */ add_filter( ‘mepr-unauthorized-message’, function( $message ) { if…Continue reading
// Define the dictionary of lead sources. $tripleseat_lead_sources = [ 112129 => [‘id’ => 112129,’name’ => ‘Web Summer Camp’], 112130 => [‘id’ => 112130,’name’ => ‘Web Lead Field Trip’], 112131 => [‘id’ => 112131,’name’ => ‘Web Lead League’], 113130 =>…Continue reading
function ld_currently_studying_widget() { if ( ! is_user_logged_in() ) { return ‘ Log in to continue your courses. ‘; } $user_id = get_current_user_id(); $latest_course_id = learndash_get_last_active_course( $user_id ); // If no course started, skip output if ( ! $latest_course_id ) {…Continue reading
// custom login logo function injection function center_login_logo() { ?>Continue reading
/** * v1.0.1 * Block Search Engine Bots from Accessing GeoIP Detection AJAX * * Add this code to your theme’s functions.php or a custom plugin */ add_action(‘init’, ‘block_bots_from_geoip_detection’); function block_bots_from_geoip_detection() { // Only check on admin-ajax.php requests if (strpos($_SERVER[‘REQUEST_URI’],…Continue reading
/** * Snippet Name: Show ‘NEW’ Badges for Recently Added Items in WooCommerce * Snippet Author: wdxtechnologies.com */ // Show the NEW badge on the archive loop item add_action( ‘woocommerce_after_shop_loop_item_title’, ‘ecommercehints_product_archive_new_badge’, 1 ); function ecommercehints_product_archive_new_badge() { global $product; $days_to_show =…Continue reading
// Ajoutez ce code dans WPCode ou dans le fichier functions.php de votre thème enfant add_action(‘wp_head’, function() { ?>Continue reading
// Modify the columns and ensure WhatsApp column appears last function add_whatsapp_column($columns) { // Remove WhatsApp column if it already exists if (isset($columns[‘whatsapp’])) { unset($columns[‘whatsapp’]); } // Add WhatsApp column after Courier Address column if (isset($columns[‘courier_address’])) { $new_columns = [];…Continue reading