Hide a specific category in admin All Posts page (WordPress)

If we look at the official documentation for WP_Query: https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters Show posts associated with certain categories. cat (int) – use category id. category_name (string) – use category slug. category__and (array) – use category id. category__in (array) – use category id. category__not_in (array) – use category id. The problem is that cat demands a category ID, … Read more

wp_filesystem put_contents issue with owner/group

I got it fixed, using this function request_filesystem_credentials(), it seems to initialize things and gets the proper credentials. Found it in an example in this article: An Introduction to the WordPress Filesystem API. My code: # get credentials function connect_fs() { global $wp_filesystem; if( false === ($credentials = request_filesystem_credentials(”)) ) { return false; } //check … Read more