Remove a metabox registered by another plugin – Woocommerce [closed]

A quick search in their GitHub repo shows the following line: add_meta_box( ‘woocommerce-product-images’, __( ‘Product Gallery’, ‘woocommerce’ ), ‘WC_Meta_Box_Product_Images::output’, ‘product’, ‘side’ ); So your call to remove_meta_box() uses the right id/handle/name as well as the right priority and context. The problem just is the hook and the priority at which the hook executes – you … Read more

remove_meta_box for all post types doesn’t seem to work

Remember Apple’s “Goto Fail”? Similar situation: Your code actually does this, when indentation is corrected: foreach ( $post_types as $post_type ) remove_meta_box(‘trackbacksdiv’, $post_type, ‘normal’); remove_meta_box(‘postcustom’, $post_type, ‘normal’); remove_meta_box(‘authordiv’, $post_type, ‘normal’); remove_meta_box(‘postexcerpt’, $post_type, ‘normal’); So, it should does the job for trackbacksdiv, but not for the rest because the function calls are outside of the foreach … Read more

datetime_timestamp shows numbers only? need in date and time

The date/time related field types for CMB2 store all their values as Unix timestamps in the database with the exception of text_datetime_timestamp_timezone which stores it’s value as a serialized DateTime object. text_date_timestamp Date Picker (UNIX timestamp) text_datetime_timestamp Text Date/Time Picker Combo (UNIX timestamp) text_datetime_timestamp_timezone Text Date/Time Picker/Time zone Combo (serialized DateTime object) See: https://github.com/WebDevStudios/CMB2/wiki/Field-Types What … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)