Enfold – Remove ALB Label from List View

WordPress - Enfold Theme Admin Area Mods PHP

Snippet Overview

Enfold – Remove ALB Label from List View

By default the Enfold theme adds a label to the list view of each page, post and custom post type when the Avia Builder has been enabled for that entry. This label simply reads “Advanced Layout Builder” and although it is nice to know which pages have the builder enabled it can really clutter up the WordPress admin area when it is used frequently. This function simply hides that label from view making for a cleaner layout.

// Remove WP-Admin Page List Text -- Advanced Layout Builder

function remove_ALB_post_state( $post_states, $post ) {
	if("! has_blocks( $post->ID )") {
		unset($post_states['wp_editor']);
	}
	if("!= Avia_Builder()->get_alb_builder_status($post->ID)") {
		unset($post_states['avia_alb']);
	}
return $post_states;
}

add_filter('display_post_states','remove_ALB_post_state',999,2);
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply