פוסטים אחרונים
windows 10 ותופעות לוואי
היי כבר הרבה זמן שלא כתבתי פוסט חדש ותאמינו לי שהיה הרבה על מה. אבל לפעמים אין זמן אפילו לנשום. אבל התופעה הזאת לא יכלתי
סניפטים נוספים
הפניית לקוח לעגלה לאחר לחיצה על הוסף לסל
הסבר אודות הפניית לקוח לעגלה לאחר הוספת פריט לסל הקניות
הצגת כל מיקומי הוידג'טים הרשומים במערכת
displays all registred Widget places global $wp_registered_sidebars; echo '<pre>'; print_r($wp_registered_sidebars); echo '</pre>'
Css לאקספלורר
Explorer Hacks Css /* IE10 + */ @supports (-ms-accelerator:true) { .people .elementor-column-wrap.elementor-element-populated{display:block !important;} } @supports (-ms-ime-align:auto) { .people .elementor-column-wrap.elementor-element-populated{display:block !important;} }
מחיקת מוצרים נלווים בווקומרס
remove related products woocomerce function gs_remove_related_products() { remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); } add_action( 'init', 'gs_remove_related_products', 10 );
הוספת תמיכה בסוגי קבצים אחרים למדיה MIME TYPES
הוספת תמיכה בסוגי קבצים אחרים למדיה MIME TYPES, סיומות קבצים
ביטול מחיקת טגים של אדיטור TIMCE
add_filter('tiny_mce_before_init', 'tinymce_init'); function tinymce_init( $init ) { $init['extended_valid_elements'] .= ', span[style|id|nam|class|lang]'; $init['verify_html'] = false; return $init; } אפשר טאג SPAN אפשר טאג STYLE אפשר טאג
פתיחת שדות חדשים בטקסונומיות ללא תוסף ACF
/* * configure taxonomy custom fields */ //include the main class file require_once("tax-meta-class/Tax-meta-class.php"); /* * configure taxonomy custom fields */ $config = array( 'id' =>
סניפט הנחות בווקומרס
// The product custom field – Frontend add_action( 'woocommerce_before_add_to_cart_button', 'custom_discount_price_product_field' ); function custom_discount_price_product_field() { global $product; $curs = get_woocommerce_currency_symbol(); // Currency symbol // Get the