Snippets Collections
function get_jet_meta_fields($field_name,$slug,$field_num){
	add_filter('elementor_pro/forms/field_types', function ($types) use ($field_name) {
	    $types[$field_name] = ucfirst($field_name);
	    return $types;		
	});
	add_filter('elementor_pro/forms/render/item/'.$field_name, function ($item, $item_index, $instance) use ($slug,$field_num) {
	    ob_start();
	    global $wpdb;
	    // this adds the prefix which is set by the user upon instillation of wordpress
	    $table_name = $wpdb->prefix . "jet_post_types";
	    // this will get the data from your table
	    // id,slug,status,labels,args,meta_fields
	    $retrieve_data = $wpdb->get_results( "SELECT slug,args,meta_fields FROM $table_name" );
		$all_mata_fields = unserialize($retrieve_data[$slug]->meta_fields);
		$select_options = $all_mata_fields[$field_num]["options"];
	    $field_options = [];
	    foreach ($select_options as $key => $val) {
	    $field_options[] = $select_options[$key]['value']. "|".$select_options[$key]['key'];
	    }
	    $item['field_options'] = implode("\n", $field_options);
	    $item['field_type'] = "select";
	    ob_get_clean();
	    return $item;
	},99,3);
}

get_jet_meta_fields('locations',1,5);
get_jet_meta_fields('vacancy',1,6);
add_action( 'elementor/element/section/section_typo/after_section_start', function( $element, $args ) {
	/** @var \Elementor\Element_Base $element */
	$element->add_control(
		'custom_control_typo',
		[
			'type' => \Elementor\Controls_Manager::TEXT,
			'label' => __( 'Custom Font', 'plugin-name' ),
			'dynamic' => [
					'active' => true,
				],
			 'selectors' => [
                '{{WRAPPER}} h2, {{WRAPPER}} p, {{WRAPPER}} a' => 'font-family: {{VALUE}}!important'
            ],
			
		]
	);
}, 10, 2 );
.marquee {
  height: 660px;
  border: 0px solid #eee;
  box-sizing: border-box;
  position: relative;
  margin: 0px auto;
  animation: marquee 30s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { top: 50%; }
  100% { top: -300%; }
}

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension