Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Moises Kirsch

Disable Admins Columns Pro on Advanced Ads


I’m trying to disable ACP on Advanced Ads… I have the following code as a WPCode Snippet but it is not working (I also tried in my custom code plugi).

add_filter( 'ac/post_types', function( $post_types ){
	unset( $post_types['advanced_ads']);
	return $post_types;
}, 10, 1 );

Any ideas?


6 months, 3 weeks ago
Moises Kirsch

At the end it did work as a plugin but not as snippet in WPCOde

6 months, 3 weeks ago
Stefan van den Dungen Gronovius

I suspect the snippet plugin loads the snippet just too late.
But good to know that the snippet worked after all.

6 months, 3 weeks ago

You must be logged in to reply to this topic.