کالا (محصولات)

تنظیمات کالا ها

تخمین زمان خواندن: 1دقیقه 692بازدید

کالا و محصولات -> تنظیمات کالاها

    • طول عنوان کالا : تعداد واژه های عنوان
    • طول شرح محصول : تعداد واژه های شرح
    • تعداد کالاها در موبایل : این عدد تعداد محصولات نمایش داده شده در هر ردیف موبایل را مشخص میکند.
    products-settings
    products-settings

دیدگاهی وجود ندارد

  • Eh Jewel

    13/10/2020

    Note that get_the_content doesn’t return the same thing as what the_content displays. For that you need to do this:

    $content = apply_filters( \'the_content\', get_the_content() );
    echo $content;
    
    Reply
    • Demo User

      13/10/2020

      If you are wanting to check if a custom (non core block) is for a page or post, include the namespace/name-of-block:

      if ( has_block( \'my-namespace/block-name\' ) ) {
       // Do stuff here.
      }
      
      Reply
  • Eh Jewel

    13/10/2020
    // Note: does not support arrays
    if ( has_block( array( \'gallery\', \'button\' ) ) ) {
        // error
    }
     
    // Use || instead
    if ( has_block( \'gallery\' ) || has_block( \'button\' ) ) {
        // Do something.
    }
    
    Reply

ثبت دیدگاه

Share this Doc

تنظیمات کالا ها

Or copy link

CONTENTS