add-custom-user-settings-tab

function my_custom_user_settings_tab() { // create the Custom Tab in the settings navigation bp_core_new_subnav_item( array( ‘name’ => __( ‘Language’, ‘buddyboss-theme’ ), // Replace ‘Custom Tab’ with the name of your tab ‘slug’ => ‘platform-language’, // Change this to your desired slug…Continue reading

MemberPress: Change Courses Listing Page Link

add_filter( ‘post_type_archive_link’, function ( $link, $post_type ) { if ( $post_type == ‘mpcs-course’ ) { $link = home_url() . ‘/courses/’; //replace the word courses with the custom page or post slug } return $link; }, 10, 2 );Continue reading

MemberPress: Change Stripe Checkout Description

function mepr_change_stripe_checkout_desc($desc, $payment) { if (isset($payment->settings->stripe_checkout_enabled) && $payment->settings->stripe_checkout_enabled == ‘on’) { $desc = “Pay with Apple Pay”; // Edit this. } return $desc; } add_filter(‘mepr_signup_form_payment_description’, ‘mepr_change_stripe_checkout_desc’, 10, 2);Continue reading

EIN – Süße Tiere – Gutenberg ausschalten

// Gutenberg für Beiträge und Seiten deaktivieren add_filter(‘use_block_editor_for_post’, ‘__return_false’); add_filter(‘use_block_editor_for_post_type’, ‘__return_false’, 10, 2); // Klassische Widgets wiederherstellen add_filter(‘use_widgets_block_editor’, ‘__return_false’); // Menüverwaltung sicherstellen (optional) add_filter(‘gutenberg_use_widgets_block_editor’, ‘__return_false’); // Gutenberg-Styles aus dem Frontend entfernen add_action(‘wp_enqueue_scripts’, function () { wp_dequeue_style(‘wp-block-library’); // Standard Block-Styles wp_dequeue_style(‘wp-block-library-theme’);…Continue reading