Unanswered Questions
2,600 questions with no answers
6
votes
0
answers
611
views
How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
If I want to extend the core block I can use Block Filters where I found a filter like editor.BlockEdit.
Example from doc:
const { createHigherOrderComponent } = wp.compose;
const { Fragment } = wp....
6
votes
0
answers
521
views
Gutenberg Blocks doesn't render correctly when using do_blocks
I'm trying to render a post_content with blocks using the do_blocks function, that takes a gutenberg content, parses every block, and returns an HTML string.
The problem is that some blocks aren't ...
6
votes
0
answers
1k
views
WordPress REST API call generates nonce twice on every call
I'm trying to login a user via the REST API, and then retrieve the current user on subsequent requests. As per the documentation, in my plugin, I am creating and retrieving a nonce after a successful ...
4
votes
0
answers
1k
views
Developing the save function in Gutenberg blocks
I am editing the save function on my local wordpress instance. Every time I make a change, I need to manually click the "Attempt Block Recovery" button to see the updated change when I go to ...
4
votes
0
answers
331
views
How to disable "Transform to" option in Gutenberg custom blocks
I prepared some non-standard Gutenberg blocks.
They have a very specific purpose. Therefore, I do not want them to have the Transform to option available.
What I found is the ability to use support: {}...
4
votes
0
answers
76
views
Using Primary Color in Plugin Block
I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
0
answers
194
views
permalinks with get variables
I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows
add_filter( 'query_vars','driver_vars' );
function driver_vars( $vars ) {
...
3
votes
0
answers
77
views
Block Editor: Filter getSaveElement and innerBlocks
I'm the author of the Falang multilanguage plugin for wordpress (https://wordpress.org/plugins/falang/), trying to add a feature allowing site admins to translate their site from inside the gutenberg ...
3
votes
0
answers
696
views
Gutenberg text field validation
I have been searching for ages but can't seem to find an exact method on how to perform text input validation when building custom blocks. I saw that for TextControl inputs you can just pass the ...
3
votes
0
answers
210
views
Gutenberg is there a way to know if the current block is reusable?
So I have developed some blocks using React, I save my css generated in the post meta, that's works fine. In the case of reusable blocks:
Whene we set a block as reusable this block will saved as ...
3
votes
0
answers
259
views
Gutenberg - What is the best way to save/update post meta?
What would be the best way in Gutenberg to save/update post meta (not from a block). I can't find an API for it.
I was thinking of doing some ajax in componentDidMount using wp.ajax.post
Any advice ...
3
votes
0
answers
449
views
Wordpress password reset - why post rp_key?
I'm developing a plugin and after reading through wp-login.php, I can't seem to work out why some things are done the way they are.
Why does WordPress hide the reset password key from the URL?
After ...
3
votes
0
answers
2k
views
Add parent/child taxonomy to custom post type url
I have seen several cases of one taxonomy being added to a custom post type url, but I have modified that function to include a parent and a child taxonomy term. However, I am getting a 404 when I go ...
3
votes
0
answers
381
views
Linking three taxonomies with ACF
I'm creating a product finder using a CPT called "Products", which is already used for displaying products separately on the site. The product finder is based on a answer and question idea, where the ...
3
votes
0
answers
50
views
Yoast SEO blocking/re-initialising longer running process
I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database.
This is really a long-running process (maybe over 30 ...