Set default value for “Additional CSS class(es)” for specific block types

A simple solution would be to register custom block style variations for the core/columns block and let the user select your custom padding settings from these, instead of editing class names in the extra classes field (which isn’t too comfortable from a user’s perspective). Gutenberg automatically outputs class names in the form is-style-(name of block … Read more

separate categories with comma and srounded by single quote

Welcome to WPSE faq! This type of question is probably best suited for suited for stackoverflow, rather than here as the question isn’t specifically related to WordPress. You just need to get an array of the IDs (a simple foreach loop could do this – or use the WordPress’ wp_list_pluck) and then explode that array: … Read more

How to remove this filter?

It depends on the call sequence. Are you sure that the remove_filter is called after the add_filter and before the attachment_fields_to_edit filter is invoked? Add few trace statements and verify.

Is it possible to override the default Gallery Settings form?

There is no way to alter the gallery settings. About the only thing you can do is to override the entire gallery shortcode. You can technically have your users pass any sort of parameters into the shortcode and recognize them with your alternate gallery. Simply use: add_filter(‘post_gallery’, ‘foo_override_gallery’, 1, 2); function foo_override_gallery($empty, $attr){ //Extract the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)