Questions tagged [plugin-development]
WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.
6,685 questions
0
votes
0
answers
16
views
I have a wordpress plugin with user authentication issues [closed]
I need help to solve the issue.
I can share existing code and folder name and other details.
Please solve this problem.
Templates folder containing register.php, login.php, forgot-password.php, change-...
1
vote
0
answers
37
views
Can I output this without any wp-tokens and RichText is not shown in the modal?
I have this code
import { useSelect, useDispatch } from '@wordpress/data';
import {
Button,
Modal,
TextControl,
SearchControl,
Spinner,
SnackbarList,
BaseControl
} ...
1
vote
0
answers
25
views
Including a javascript library in an edit.sj function
I am in the process of creating a Gutenberg block that can display animations created with the JavaScript library createjs. I used the @wordpress/create-block package to create the block and was able ...
2
votes
1
answer
49
views
Implement a webhook endpoint into a plugin
We manage a catalogue website that displays objects the client manages in a 3th party application. The objects in the catalog are a CPT, created and updated via the API from the 3th party application. ...
0
votes
1
answer
52
views
Why does $wpdb->tables('all') omit some tables vs mysql "SHOW TABLES", and can I use $wpdb methods to get ALL the tables?
Basically, I've noticed that custom tables created by plugins show up in the array returned by $wpdb->tables('all') only sometimes
See this question for background... In that question, and its ...
1
vote
1
answer
113
views
How to get list of ALL tables in the database?
This is strange. I know about $wpdb->table(). But it doesn't seem to show a table that I know "should" exist.
I have the Profile Extra Fields plugin installed and activated. I used it to ...
1
vote
2
answers
107
views
Admin adding submenu that has the same destination as the parent menu
In a plugin I'm trying to to have a submenu which as the same destination as the parent.
Using add_menu_page and add_submenu_page with the same menu_slug and no callback for the parent menu. Just like ...
1
vote
3
answers
100
views
setAttribute For Nested Array in Wordpress Block Plugin Not Updating
I am new to this area. I am just testing and working with the syntax to learn while slowly progressing to a functional block plugin. I have started this test project from one of the templates provided ...
1
vote
1
answer
44
views
Package a custom post type, and taxonomies, with their block templates in a plugin
I am trying to write a plugin that packages a custom post type with a collection of custom taxonomies, provides all the appropriate default block templates, and applies them automatically. I ...
0
votes
0
answers
46
views
Gutenberg Block Validation Failed for a custom block
I have a custom block that has been updated a couple of times now. When I try to save the post that contains the said block, it gives me the following error:
Content generated by the save function:
&...
0
votes
0
answers
32
views
Fully working Edit.js but loads of render.php debugging
Is there a way to just display my edit.js page for my dynamic block? or do I have to build out PHP to essentially mirror the edit.js page?
I have built a dynamic block, but if I can do this with a ...
0
votes
1
answer
48
views
NPM version problem
...wp-content\plugins> npx @WordPress.org/create-block@latest preset-block-bindings --template @block-developer-cookbook/preset-block-bindings
Minimum system requirements not met!
Error: Wanted ...
0
votes
1
answer
53
views
Remove and strip html tag values
I have imported some blog posts from an external site and there were unnecessary html tags and values I wanted to get rid of like the sizes and srcset including their values for all blog posts. It ...
0
votes
1
answer
60
views
Custom plugin with dynamic child pages listing database records
I am a bit new to coding in WP (and php) - more of a C# developer.
This question is directly related to this one, since I am implementing an analogous scenario, using the base of the example. My real ...
0
votes
0
answers
99
views
Issue with $wpdb->prepare() in Plugin Check
I'm updating a WordPress plugin and using Plugin Check to detect errors. I'm getting the following error:
ERROR WordPress.DB.PreparedSQL.NotPrepared Use
placeholders and $wpdb->prepare(); found $...
0
votes
1
answer
39
views
Can a Wordpress plugin add read-only pages?
I'd like to develop a Wordpress plugin which would add custom database tables as well as pages interacting with these tables (e.g. a form to add new entries, a list of current entries...)
Is there a ...
0
votes
2
answers
226
views
Problem with register_setting()
I am working on a plugin but I keep getting this error message with the plugin checker.
Dynamic argument passed in third parameter of register_setting().
Please ensure proper sanitization.
Below is ...
0
votes
1
answer
43
views
How to give a NavWalker its own stylesheet?
I'm learning Wordpress, but I have a background in vanilla web dev.
Anyways I have learnt how to create a custom HTML structure for a menu. And that's by using the navWalker class (making a custom ...
1
vote
1
answer
90
views
How do I return XML to an API post request
I'm working on a plugin that deals with Twilio. Twilio makes a post request to the plugin and I have to respond with Twiml which is really just xml. If I try sending it through like this
$wp_response =...
1
vote
1
answer
47
views
WordPress - Filter users list count
All (3) | Administrator (3)
How can I just decrease the value by -1 from both "All" & "Administrator" role counter?
0
votes
1
answer
299
views
render_block_context filter and block context inheritance
I am attempting to add some context to the Query Loop block and inherit that on the inner blocks like post title (so nested inside the Post Template block). I can filter it in on render_block_context ...
1
vote
0
answers
57
views
How to Insert Elementor Elements with CSS and JS into a Custom Post Type Using wp_insert_post()? [closed]
I am building an e-commerce website to sell online invitation templates. After purchasing a template, customers need to edit the template they've bought. To facilitate this, I created a custom post ...
0
votes
1
answer
38
views
Customize Message
I am developing a Plugin. I would like to Customize Message. When I delete any post I am getting message 1 post moved to the Trash. and when I delete a post from trash I am getting message 1 post ...
0
votes
1
answer
62
views
My wordpress plugin defaults to English (US) I would like it to default to English (UK)
I have written a Wordpress plugin which has been accepted into the repository:
https://en-gb.wordpress.org/plugins/english-chess-data
I have noticed that the language it is listed as is English (US), ...
2
votes
0
answers
84
views
Ways to reduce code duplication when creating custom blocks
I'm a bit of a rookie, so I may be looking at this all backwards - but if that is the case having someone point me in the right direction would be incredibly valuable!
I'm creating a few custom blocks ...