464 questions
0
votes
1
answer
33
views
How Can I use i20 Sidebar Widgets WordPress plugin multiple times in my Blog pages?
i installed this wp plugin in my Blog. I want to use this Shortcode plugin multiple times in Category and tag pages but the Shortcode is working Same for all pages. How can I change width and height ...
0
votes
1
answer
75
views
WooCommerce Plugin: needs_setup not triggering
Prerequisites
[x] I have carried out troubleshooting steps and I believe I have found a bug.
[x] I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
Describe ...
0
votes
1
answer
87
views
Using the AJAX WordPress Plugin to change values on a DIV container
I am working on a simple AJAX WordPress plugin. The plugin needs to make a call and then pass the results using AJAX.
Here is my function in JavaScript:
function courseGradeHistory(student_id) {
/...
0
votes
0
answers
26
views
managing different folder structures between development and deployment in a WordPress plugin
I have developed a WordPress plugin that is now live on the WordPress Plugin Directory. However, I'm facing an issue with managing different folder structures between my development environment and ...
0
votes
0
answers
22
views
Unable to import WXR via PHP on plugin activation
I'm setting up a large collection of sites for my non-profits chapters. They all need to start with a bit of boilerplate content and I'm hoping to automate the import process. However, I can't for the ...
0
votes
0
answers
38
views
add_filter() conflicts with add_action()
My code is likely not great and I'm sure you are all gonna say what the functions do is the wrong way to do it... If so, that is a separate conversation... That is a conversation I would be interested ...
1
vote
0
answers
53
views
Confluence API integration on wordpress site
We're trying to fetch Confluence page content on a WordPress site using the Confluence API. The API returns a response when tested via Postman, but it doesn't work on the WordPress page.
I've created ...
0
votes
0
answers
46
views
How to handle .htaccess restrictions during plugin installation on Bitnami when .htaccess is disabled?
I have a WordPress plugin that creates folder structures and places an .htaccess file inside these folders to restrict access. This works perfectly in typical WordPress setups, but I’m facing an issue ...
1
vote
0
answers
60
views
Override a function inside a Child Class WorddPress Plugin
So I've been trying to override a method inside a child class, originally I modified the original files but that would get deleted with every plugin update, therefore I wanted to create a custom ...
0
votes
1
answer
41
views
AJAX button doing nothing in Wordpress plugin
I have a simple wordpress plugin to create and delete "Ad campaigns" which are essentially posts in the wordpress database. They submit fine. Problem is, when I try to delete them ...
0
votes
1
answer
81
views
How to filter my API requested events list properly?
I'm pretty new to PHP and WordPress development, and I started creating my own plugin to search a database then return results from the search query and show a list of upcoming events in a "...
0
votes
0
answers
74
views
Building JSX in a WordPress plugin, can't get Webpack to watch / build from assets folder into dist?
I started to create a new Wordpress plugin and want to know what is a good structure/way to implement a build of my all javascript files (keeping their directory structure in the dist/build folder) ...
2
votes
0
answers
154
views
WooCommerce Custom Payment Gateway Plugin Not Displaying in Checkout
I have created a custom payment gateway plugin for WooCommerce. The plugin activates without any errors, and debugging logs show that the gateway class is registered and initialized. However, the ...
1
vote
1
answer
70
views
My plugin's description is not displayed in WordPress Admin's Plugins Interface
I have an issue with my plugin's description. When I go to the Admin interface in WordPress → Plugins → Installed Plugins, I see all the other plugin's description, except the one that I developed for ...
0
votes
2
answers
699
views
WordPress Plugin translation not working EN to FR, what's the reason?
I'm creating a new plugin. I generated the PO and MO files for my plugin using POedit and I followed all the steps as described on https://developer.wordpress.org/plugins/internationalization/how-to-...
0
votes
1
answer
49
views
Display string in front of the Shipping label on checkout page (instead of shipping integer value)
I want a WooCommerce hook that can help to add string Contact for shipping quotes in front of Shipping Lable, by removing the shipping price on the checkout page. I'm developing a plugin and want to ...
0
votes
0
answers
77
views
Adding Segment to URL from Custom Field Value (WordPress)
I've hit a bit of a wall here. I need to take the value of a custom field ("id") and insert it into the URL of a custom post type's page (the CPT is "inventory-item"). The desired ...
0
votes
1
answer
67
views
bootstrap datepicker on wordpress custom post type custom template not showing up
I'm new to WordPress Plugin Development and I'm having some issues with custom post type where I have a custom template:
add_filter('single_template', array($this, 'customTemplate'));
public ...
0
votes
1
answer
492
views
WordPress nonce validation fail with AJAX calls
I am creating a payment plugin that integrates with a payment aggregator. So in the case of wooCommerce checkout, There's a possibility for the payer to pay to through mobile wallets, which would ...
0
votes
0
answers
51
views
Custom API Creating Company but not Users
I am currently building a custom API plugin for a WordPress e-commerce website that should create a company and then a user within the company once it goes through the checkout form. Currently, it is ...
0
votes
1
answer
53
views
How to target non-empty p elements in PHP?
I am developing a plugin for my WordPress site. I want to select all non-empty paragraph elements.
Here is my code :
function my_php_custom_function($content){
// Create a new DOMDocument instance
$...
1
vote
1
answer
191
views
wp_enqueue_scripts not loading (class based plugin)
For some reasons, i don't know why, i don't know how.. this is driving me nuts. What am i doing wrong here, i've searched for 3 hours straight for a solution
Here's the of the thesis.php file which is ...
1
vote
0
answers
47
views
Create a custom image size (Can't register my size)
I need to resize images. I'm creating my own plugin (not theme).
Here's what I use:
function myplugintest_custom_image_size_500_x_500() {
add_image_size( 'myplugintest-size-500-500', 500, 500,0 );
...
0
votes
0
answers
63
views
AJAX Operations Not Working Inside a WordPress Plugin
I'm developing a WordPress plugin and encountering issues with implementing AJAX operations within it. Specifically, the AJAX URL provided by wp_localize_script to my JavaScript file seems to be ...
0
votes
0
answers
94
views
How can I catch WordPress custom settings page slug has already changed?
I created a custom settings page like below.
add_menu_page(
__('Management', 'domain'),
__('Management', 'domain'),
'activate_plugins',
'management', // <---
...