Ship block templates or block template parts with plugins
Ship block templates or block template parts with plugins
Ship block templates or block template parts with plugins
Core/Image access caption in render_template and in wp.hooks
Adding custom filter not working
Custom updater to change plugin version
add_filter( ‘user_has_cap’,’my_function’, 10, 3 ); and call to get_users in my function triggers an infinite loop in user list
wp reset password page – head inline script
You’re using an invalid Content-Type header. x-www-form-urlencoded isn’t a valid content-type. The correct content type is application/x-www-form-urlencoded. Essentially, the web server doesn’t know how to handle the content type you’re giving it to parse the parameters. This is why the request is failing with a 400 because WP is not getting anything in the POST … Read more
Solved the issue. Thank you @birgire for giving me a hint. First I edited MySQL wp_comments table by changing comment_content rows «Type» from TEXT to MEDIUMTEXT and restarted MySQL. Then created filter in functions.php: add_filter( ‘wp_get_comment_fields_max_lengths’, ‘my_length’ ); function my_length ( $lengths ) { global $wpdb; $lengths = array( ‘comment_author’ => 245, ‘comment_author_email’ => 100, … Read more
plugins_loaded runs before the theme is loaded, so it will never be able to filter something that happens on this hook from a theme. If you want something to do with post type registration to be filterable you should perform the registration on the init hook. This is the usual hook for post type registration … Read more
The WordPress REST API includes a ‘status’ parameter that can be used to retrieve posts based on their status. By default, the API only returns posts with a status of ‘publish’. If you want to query ‘pending’ posts, you’ll need to add ‘status=pending’ to your API call. However, please note that you will need appropriate … Read more