Category Filter Hook

product_designer_text_types

add_action(‘product_designer_text_types’, ‘product_designer_text_types_20200808’, 0); function product_designer_text_types_20200808($img_types){ $img_types[‘custom’] = __(‘Custom text’, ‘product-designer’); return $img_types; } add_action(‘product_designer_text_type_content_custom’, ‘product_designer_text_type_content_custom’, 0); function product_designer_text_type_content_custom($atts){ $settings = isset($atts[‘settings’]) ? $atts[‘settings’] : array(); $menu_position = isset($settings[‘menu_position’]) ? $settings[‘menu_position’] : ‘left’; $icons = isset($atts[‘icons’]) ? $atts[‘icons’] : ”; $cube…

product_designer_image_types

add_action(‘product_designer_image_types’, ‘product_designer_image_types_20200808’, 0); function product_designer_image_types_20200808($img_types){ $img_types[‘custom’] = __(‘Custom image’, ‘product-designer’); return $img_types; } add_action(‘product_designer_image_type_content_custom’, ‘product_designer_image_type_content_custom’, 0); function product_designer_image_type_content_custom($atts){ $settings = isset($atts[‘settings’]) ? $atts[‘settings’] : array(); $menu_position = isset($settings[‘menu_position’]) ? $settings[‘menu_position’] : ‘left’; $icons = isset($atts[‘icons’]) ? $atts[‘icons’] : ”; $cube…

product_designer_editor_class

add_action(‘product_designer_editor_class’, ‘product_designer_editor_class_20200808’, 0); function product_designer_editor_class_20200808($class){ $class .= ‘ custom-class’; return $class; } View post on imgur.com

product_designer_shortcode_atts

add_action(‘product_designer_shortcode_atts’, ‘product_designer_shortcode_atts_20200808’, 0); function product_designer_shortcode_atts_20200808($atts){ $atts[‘custom_atts’] = ‘Custom value’; return $atts; }  

product_designer_fonts

function product_designer_fonts_custom_20200808($fonts){ $fonts[] = array(‘name’=>’Rye’); $fonts[] = array(‘name’=>’Nosifer’); return $fonts; } add_filter(‘product_designer_fonts’, ‘product_designer_fonts_custom_20200808’); Removing existing fonts function product_designer_fonts_custom_20200808($fonts){ // to remove existing fonts just replace the variable($fonts) name with new variable($my_fonts) // adding Google fonts $my_fonts[] = array(‘name’=>’Rye’); $my_fonts[] =…