Sa. Sep 13th, 2025

function zuhause_gefunden( $content ) {
if( is_single() ) {
if (in_category(‚118‘)) {
$content .= do_shortcode( ‚

    Zuhause gefunden

    ‚ );
    }
    }
    return $content;}
    add_filter(‚the_content‘, ‚zuhause_gefunden‘);

    function zuhause_gesucht( $content1 ) {
    if( is_single() ) {
    if (in_category(‚117‘)) {
    $content1 .= do_shortcode( ‚

    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Dein Vorname
    Dein Vorname
    Pflichtfeld!
    Pflichtfeld!
    Dein Nachname
    Dein Nachname
    Pflichtfeld!
    Pflichtfeld!
    Deine Emailadresse
    Deine Emailadresse
    Pflichtfeld!
    Pflichtfeld!
    Deine Nachricht (optional)
    ...
    Pflichtfeld!
    Pflichtfeld!
    Stellen Sie uns Fragen ...
    Pflichtfeld!
    Pflichtfeld!
    Stellen Sie uns Fragen ...
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    ‚ );
    }
    }
    return $content1;}
    add_filter(‚the_content‘, ‚zuhause_gesucht‘);

    function patenschaft( $content2 ) {
    if( is_single() ) {
    if (in_category(‚126‘)) {
    $content2 .= do_shortcode( ‚

    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Dein Vorname
    Dein Vorname
    Pflichtfeld!
    Pflichtfeld!
    Dein Nachname
    Dein Nachname
    Pflichtfeld!
    Pflichtfeld!
    Deine Emailadresse
    Deine Emailadresse
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Wähle ein Datum
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!
    Pflichtfeld!

      Pflichtfeld!
      Pflichtfeld!
      Pflichtfeld!
      Pflichtfeld!
      Deine Nachricht (optional)
      ...
      Pflichtfeld!
      Pflichtfeld!
      Sämtliche Daten bekommst Du im Anschluss per E-Mail mitgeteilt.

      Pflichtfeld!
      Pflichtfeld!
      Pflichtfeld!
      Pflichtfeld!
      Ihr vollständiger Name
      Pflichtfeld!
      Pflichtfeld!
      Ihr vollständiger Name
      Pflichtfeld!
      Pflichtfeld!
      ‚ );
      }
      }
      return $content2;}
      add_filter(‚the_content‘, ‚patenschaft‘);

      function paypal( $content3 ) {
      if( is_single() ) {
      if (in_category(’27‘)) {
      $content3 .= do_shortcode( ‚

        ‚ );
        }
        }
        return $content3;}
        add_filter(‚the_content‘, ‚paypal‘);

        function paten_gefunden( $content4 ) {
        if( is_single() ) {
        if (in_category(‚327‘)) {
        $content4 .= do_shortcode( ‚

          Paten gefunden

          ‚ );
          }
          }
          return $content4;}
          add_filter(‚the_content‘, ‚paten_gefunden‘);

          function interessent_gefunden( $content14 ) {
          if( is_single() ) {
          if (in_category(‚328‘)) {
          $content14 .= do_shortcode( ‚

            Reserviert, Papa wartet schon auf mich

            ‚ );
            }
            }
            return $content14;}
            add_filter(‚the_content‘, ‚interessent_gefunden‘);

            add_filter(‚manage_posts_columns‘, ‚kb_posts_columns_id‘, 4);
            add_action(‚manage_posts_custom_column‘, ‚kb_posts_custom_id_columns‘, 4, 2);

            add_filter(‚manage_pages_columns‘, ‚kb_posts_columns_id‘, 4);
            add_action(‚manage_pages_custom_column‘, ‚kb_posts_custom_id_columns‘, 4, 2);

            function kb_posts_columns_id($defaults){
            $defaults[‚kb_wps_post_id‘] = __(‚ID‘);
            return $defaults;
            }

            function kb_posts_custom_id_columns($kb_column_name, $id){
            if($kb_column_name === ‚kb_wps_post_id‘){
            echo $id;
            }
            }

            add_filter( ‚product_type_options‘, function( $options ) {

            // remove „Virtual“ checkbox
            if( isset( $options[ ‚virtual‘ ] ) ) {
            unset( $options[ ‚virtual‘ ] );
            }

            // remove „Downloadable“ checkbox
            if( isset( $options[ ‚downloadable‘ ] ) ) {
            unset( $options[ ‚downloadable‘ ] );
            }

            return $options;

            } );

            add_action( ‚template_redirect‘, ’save_product_on_page_load‘ );

            function save_product_on_page_load() {

            if ( get_post_type() === „product“ ){

            $product = wc_get_product( get_the_id() );
            if ( $product->is_type(’simple‘) ) {
            $productId = $product->get_id();
            wp_remove_object_terms( $productId, ’simple‘, ‚product_type‘, true );
            wp_set_object_terms( $productId, ‚auction‘, ‚product_type‘, true );
            header(„Refresh:0“);
            }
            }
            }
            function add_scriptfilter( $string ) {global $allowedtags;$allowedtags[’script‘] = array( ’src‘ => array () );return $string;}add_filter( ‚pre_kses‘, ‚add_scriptfilter‘ );

            add_action( ‚woocommerce_after_add_to_cart_form‘, ‚bbloomer_yith_vendor_shipping‘ );

            add_action(‚woocommerce_single_product_summary‘, ‚display_specific_shipping_class‘, 15 );
            function display_specific_shipping_class(){
            global $product;

            // HERE define your targeted shipping class name
            $defined_shipping_class = „Estimated Delivery in 7-15 days“;

            // Get the product shipping class WP_Term Object
            $term = get_term_by( ’slug‘, $product->get_shipping_class(), ‚product_shipping_class‘ );

            if( is_a($term, ‚WP_Term‘) && $term->name == $defined_shipping_class ){
            echo ‚

            ‚ . $term->name . ‚

            ‚;
            }
            }

            add_action( ‚personal_options_update‘, ‚my_save_extra_profile_fields‘ );
            add_action( ‚edit_user_profile_update‘, ‚my_save_extra_profile_fields‘ );

            function my_save_extra_profile_fields( $user_id ) {

            if ( !current_user_can( ‚edit_user‘, $user_id ) )
            return false;

            update_usermeta( $user_id, ‚bankname‘, $_POST[‚bankname‘] );
            update_usermeta( $user_id, ‚kontoinhaber‘, $_POST[‚kontoinhaber‘] );
            update_usermeta( $user_id, ‚iban‘, $_POST[‚iban‘] );
            update_usermeta( $user_id, ‚bic‘, $_POST[‚bic‘] );
            update_usermeta( $user_id, ‚paypal‘, $_POST[‚paypal‘] );
            }

            add_action( ’show_user_profile‘, ‚my_show_extra_profile_fields‘ );
            add_action( ‚edit_user_profile‘, ‚my_show_extra_profile_fields‘ );
            function my_show_extra_profile_fields( $user ) { ?>

            Zahlungsdaten


            Kontoinhaber

            Hier Name der Bank eintragen.

            Iban

            BIC

            Paypal

            <?php }

            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Dein Vorname
            Dein Vorname
            Pflichtfeld!
            Pflichtfeld!
            Dein Nachname
            Dein Nachname
            Pflichtfeld!
            Pflichtfeld!
            Deine Emailadresse
            Deine Emailadresse
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Wähle ein Datum
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!
            Pflichtfeld!

              Pflichtfeld!
              Pflichtfeld!
              Pflichtfeld!
              Pflichtfeld!
              Deine Nachricht (optional)
              ...
              Pflichtfeld!
              Pflichtfeld!
              Sämtliche Daten bekommst Du im Anschluss per E-Mail mitgeteilt.

              Pflichtfeld!
              Pflichtfeld!
              Pflichtfeld!
              Pflichtfeld!
              Ihr vollständiger Name
              Pflichtfeld!
              Pflichtfeld!
              Ihr vollständiger Name
              Pflichtfeld!
              Pflichtfeld!