/home/techb158/public_html/wp-content/plugins/elementor/modules/editor-one/classes
Edit: /home/techb158/public_html/wp-content/plugins/elementor/modules/editor-one/classes/menu-config.php (4423B)
self::TEMPLATES_GROUP_ID,
];
return apply_filters( 'elementor/editor-one/menu/legacy_slug_mapping', $default_mapping );
}
public static function get_legacy_pro_mapping(): array {
$default_mapping = [
'elementor-license' => [ 'group' => self::SYSTEM_GROUP_ID ],
'e-form-submissions' => [ 'group' => self::EDITOR_GROUP_ID ],
'edit.php?post_type=elementor_font' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Fonts', 'elementor' ),
],
'edit.php?post_type=elementor_icons' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Icons', 'elementor' ),
],
'edit.php?post_type=elementor_snippet' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Code', 'elementor' ),
],
'e-custom-fonts' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Fonts', 'elementor' ),
],
'e-custom-icons' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Icons', 'elementor' ),
],
'e-custom-code' => [
'group' => self::CUSTOM_ELEMENTS_GROUP_ID,
'label' => __( 'Code', 'elementor' ),
],
];
return apply_filters( 'elementor/editor-one/menu/legacy_pro_mapping', $default_mapping );
}
public static function get_attribute_mapping(): array {
$default_mapping = [
'e-form-submissions' => [
'position' => 70,
'icon' => 'send',
],
];
return apply_filters( 'elementor/editor-one/menu/position_mapping', $default_mapping );
}
public static function get_custom_code_url(): string {
$pro_custom_code_cpt = 'elementor_snippet';
if ( post_type_exists( $pro_custom_code_cpt ) ) {
$default_url = admin_url( 'edit.php?post_type=' . $pro_custom_code_cpt );
} else {
$default_url = admin_url( 'admin.php?page=elementor_custom_code' );
}
return apply_filters( 'elementor/editor-one/menu/custom_code_url', $default_url );
}
public static function get_elementor_home_url(): string {
return admin_url( 'admin.php?page=' . self::ELEMENTOR_MENU_SLUG );
}
public static function get_elementor_post_types(): array {
$default_values = [
'elementor_icons' => [
'menu_slug' => 'elementor-custom-elements',
'child_slug' => 'edit.php?post_type=elementor_icons',
],
'elementor_font' => [
'menu_slug' => 'elementor-custom-elements',
'child_slug' => 'edit.php?post_type=elementor_font',
],
'elementor_snippet' => [
'menu_slug' => 'elementor-custom-elements',
'child_slug' => 'edit.php?post_type=elementor_snippet',
],
];
return apply_filters( 'elementor/editor-one/menu/elementor_post_types', $default_values );
}
}