/** * Author: Sumaiya, Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-23735 * Description: This snippet changes all instances of “Flow Mattic” to “IKS-Stream” throughout the WordPress admin area and frontend, * including titles, headings, and paragraph text. Additionally, it hides the Flow Mattic logos…Continue reading
add_filter(‘login_head’, function () { $custom_logo = ‘https://i.imgur.com/0qxSpsL.png’; // Replace the image url $logo_width = 200; // Replace the width and height accordingly $logo_height = 80; echo ‘ ‘; }, 990); add_filter( ‘login_headerurl’, function () { return ‘https://example.com’; // Replace the…Continue reading
add_action( ‘wp_head’, function() { ?>Continue reading
add_filter( ‘classic_editor_enabled_editors_for_post_type’, function ( $editors, $post_type ) { if ( $post_type == ‘mpcs-course’ || $post_type == ‘mpcs-lesson’ || $post_type = ‘mpcs-quiz’ ) { $editors[‘classic_editor’] = false; } return $editors; }, 10, 2 );Continue reading
/* Plugin Name: SuperWp WhatsApp Product Enquiry Description: Adds a WhatsApp enquiry button to WooCommerce product pages with customizable options, custom messages, and phone number input. Version: 1.0.3 Author: Thiarara SuperWP */ // Add WooCommerce Submenu for WhatsApp Enquiry Settings…Continue reading
add_shortcode( ‘mpcs-course-progress’, function( $atts ) { if( !isset( $atts[ ‘course_id’ ] ) ) return; $user_id = get_current_user_id(); if ( !$user_id ) return ”; $course = new memberpress\courses\models\Course((int)$atts[‘course_id’]); $progress = $course->user_progress($user_id); ?>Continue reading
//Claude – Generate Sitemap v1.0 add_action(‘admin_menu’, ‘add_sitemap_generator_menu’); function add_sitemap_generator_menu() { add_menu_page( ‘Sitemap Generator’, ‘Sitemap Generator’, ‘manage_options’, ‘csv-sitemap-generator’, ‘csv_sitemap_generator_page’, ‘dashicons-networking’ ); } function write_log($message) { $timestamp = date(‘Y-m-d H:i:s’); $log_entry = “[$timestamp] $message\n”; file_put_contents(WP_CONTENT_DIR . ‘/sitemap-logs.txt’, $log_entry, FILE_APPEND); } function generate_sitemap_file($urls,…Continue reading
add_filter( ‘widget_text’, ‘do_shortcode’ );Continue reading
// Hook into the WordPress login process add_action(‘wp_login’, ‘send_otp_to_admin’, 10, 2); function send_otp_to_admin($user_login, $user) { // Check if the user is an administrator if (in_array(‘administrator’, $user->roles)) { // Generate a random 6-digit OTP $otp = wp_rand(100000, 999999); // Store the…Continue reading