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
19 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-...
0 votes
0 answers
26 views
do_shortcode Escaping
Please tell me how to escape the widget shortcode. There is a function: if (!function_exists('foo_do_shortcode')) { function foo_do_shortcode($name, $attrs = array()) { $special_chars = ...
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 } ...
0 votes
1 answer
38 views
Rename directory of a plugin inside a zip on install
I have a plugin hosted on github. Any release puts my file info the following structure: MyPlugin-ReleaseTag.zip | + /MyPlugin-ReleaseTag | + MyPlugin.php + /assets + /src That ...
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 ...
1 vote
0 answers
36 views
Can I add code to do CRUD to the content of a page this way?
I'm busy with this course and almost to the end. One of the challenges at the end stated to add code to do the CRUD operations on the content of the page. So I have this code from the course: function ...
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. ...
1 vote
2 answers
165 views
Create a custom filter in WordPress extensions page
I'm developing several private plugins and, to speed things up, I'd like to be able to filter all my plugins in the top bar of the WordPress plugins page. I've seen this is possible, but I don't know ...
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
0 answers
30 views
Are there any ways to have the attribute value to appear by default in a custom block created with 'create-block' tool?
I've been trying to wrap my head around how can I have the attributes to be "on" and to show in the site editor (attributes appear immediately after inserting the block into page/post) like ...
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 ...
0 votes
1 answer
61 views
How to fix post_tags not showing for a CPT in new post for a custom user role?
I have a custom user role (Writer) with the following capibilities: Array ( [read] => 1 [level_0] => 1 [edit_stories] => 1 [edit_published_stories] => 1 [...
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 ...
0 votes
2 answers
79 views
Custom Taxonomy Ajax ordering in admin like woocommerce product categories
This is a functionality to be active in admin panel. and yes I need to fetch the items in front end the same order. Well here is what I have tried so far. Custom post and taxonomy added in ACF. ...
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 ...