Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
-2 votes
1 answer
73 views

jQuery not grabbing form setup in chart.js loadCallback function

I have a form appearing in a popup, this loads in the content section of chart.js new Popup function. I'm utilizing the loadCallback as described in their documentation to set up actions based on ...
Angela Hornung's user avatar
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 ...
Alex000001's user avatar
0 votes
0 answers
44 views

Custom plugin correctly retrieves LinkedIn JSON, but no thumbnails are displayed

I’m trying to build a small WordPress plugin that: Calls the LinkedIn REST API (/rest/posts?q=author…&count=20&sortBy=LAST_MODIFIED) to retrieve the 20 most recent posts from my organization. ...
mmdwc's user avatar
  • 1,157
0 votes
1 answer
85 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) { /...
jlcarbwood's user avatar
1 vote
1 answer
206 views

Proper use of permission_callback in register_rest_route with JWT?

I'm developing a WordPress plugin that exposes several REST API endpoints — some are public, and others require authentication using a JWT token. I understand that when using register_rest_route(), it'...
Moniruzzaman Saikat's user avatar
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 ...
Hi10's user avatar
  • 15
1 vote
0 answers
47 views

Edit Link Still Appears for Hidden Pages on Frontend for Non-Super Admins

I'm having trouble preventing the edit page link from appearing in the admin bar on the frontend when non-super admin users view hidden pages. I have several functions that are supposed to remove the ...
Emmanuel Kuebu's user avatar
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 ...
Brennan Sang's user avatar
0 votes
0 answers
28 views

WordPress get_plugin_updates missing manual updates

We are using WordPress 6.7.1, I have created a plugin which checks if there are updates pending, so we can monitor this overall WordPress websites. But for some reason I can't get all the plugin ...
Josjr87's user avatar
  • 333
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 ...
G-J's user avatar
  • 1,068
0 votes
1 answer
49 views

in wordpress how to use classes from plugins

i have 3 party plugin for example google-calendar-events Inside there is include_once 'includes/main.php'; add_action('init', [$this, 'init'], 5); So I understand that this class is in globalnamespace ...
user2217288's user avatar
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 ...
user6725932's user avatar
0 votes
0 answers
50 views

Add new suscriber with Mailster but no is added into data base

I've created a custom WordPress theme and I'm working with Mailster plugin. According to the documentation if you want to add a new subscriber then you can add to the Mailter list which you've created ...
Bruno G's user avatar
0 votes
0 answers
54 views

DataTables 2.0 in Wordpress Plugin Admin Area

I would like to implement DataTables2 in my WordPress plugin. I started from test table to check if it works: <?php /* Plugin Name: WooSKU Updater Description: A plugin to manage SKUs, quantities, ...
awariat's user avatar
  • 382
0 votes
0 answers
26 views

tn3 gallery within web page called by API into WordPress site not working

I am creating a custom WordPress plugin where a API call is made to display a web page in the WordPress site. The web page called by API has a image gallery made with tn3 gallery, which does not ...
Homaira S's user avatar
0 votes
2 answers
102 views

wp_remote_get() not working after replacing file_get_contents() function

I'm trying to replace file_get_contents() function by wp_remote_get() function, so my program works perfectly with file_get_contents(), but when I replace it with wp_remote_get() it's not working any ...
Sam's user avatar
  • 25
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 ...
Ibtekarlabs's user avatar
1 vote
1 answer
99 views

Custom page template from plugin does not work with pre-installed themes in WordPress 2024

So I have a simple Wordpress plugin that just allows me to use custom page templates. Here's the code: my-special-template.php <?php /** * Plugin Name: My Special Template * Description: Awesome ...
darkhorse's user avatar
  • 8,894
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 ...
Firas Blouza's user avatar
0 votes
1 answer
77 views

How to deactivate plugin when WooCommerce plugin is not active and show error to user?

Here is my custom plugin code custom-plugin.php code include_once FBPE_PLUGIN_PATH . 'inc/class-free-bulk-price-editor.php'; register_activation_hook(__FILE__, array('Free_Bulk_Price_Editor', '...
Kunal Verma's user avatar
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 ...
KalebSmith's user avatar
0 votes
1 answer
187 views

How can I add a plugin message in the wordpress admin interface?

I want to add a notification in the admin interface that tells users "plugin activated" for example, but I don't know which action hook should I use, knowing that I want the message to ...
Sam94's user avatar
  • 17
0 votes
1 answer
80 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 "...
AmazinAzn's user avatar
0 votes
1 answer
199 views

Formidable Form frm_after_create_entry create a double entry

I'm trying to develop a custom action for FormidableForm that let user go through the helloasso checkout process and register it when redirected to the "thank you" page. In this action I ...
Maxime MOHANDI's user avatar
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) ...
Vahan's user avatar
  • 1
0 votes
1 answer
228 views

how to show api data in wordpress?

I want a plugin to receive a nested json file from a url and display its information in the form of paged cards with ajax search capability. Is there such a plugin? I tested the wpDataTable plugin, ...
Edvin Seddighi's user avatar
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 ...
Insaf Inhaam's user avatar
0 votes
1 answer
56 views

Error while creating woocommerce child category

Im developing a plugin that will bulk upload products from NextGen Gallery. I am using NGG albums as parent categories and NGG galleries as subcategories. I have two functions that create album and ...
Matyáš Martinek's user avatar
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 ...
Sam94's user avatar
  • 17
0 votes
1 answer
147 views

Why is my Gutenberg block not saving and rendering the chessboard

I am building a Gutenberg block where the user will place the PGN code (chess game notation) inside the RichText field. On the frontend, the game's code will be embedded inside a chessboard library ...
WPdev11's user avatar
  • 111
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-...
Sam94's user avatar
  • 17
0 votes
1 answer
185 views

How can I replace existing image with new one in wordpress in all posts?

I want to create a plugin for WordPress that converts all non-webp images into webp. I have created a function that takes the file path as an argument and creates a new webp image from that file. Now ...
Manoj Kamble's user avatar
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 ...
Rupinder Singh's user avatar
0 votes
0 answers
306 views

Cannot modify header information -headers already sent (Wordpress Custom Plugin) [duplicate]

I'm creating a plugin for a small business. I need the plugin to do a few things: Deactivate + delete pre-installed plugins Install Kadence (including kadence theme, child theme and kadence blocks) ...
WIverson97's user avatar
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 ...
Ethan Hufnagle's user avatar
0 votes
1 answer
72 views

WordPress Custom Header via plugin [closed]

I need to create custom header for my WordPress theme. But I need to do it via plugin. Something like I have prebuild header in my plugin. I need to set it to header and I need to remove theme default ...
Sithija Sumanga's user avatar
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 ...
Random Creature's user avatar
1 vote
0 answers
66 views

WooCommerce Setting Shipping Via WC()->session->set('chosen_shipping_methods', array()) Not Updating Cart Totals

function mytest_set_shipping_method( $checkout ) { // Get shipping data $shipping_data = mytest_get_shipping_methods(); // Set shipping method based on that if ( $shipping_data['...
Brian Hong's user avatar
0 votes
1 answer
487 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 ...
Anseloh's user avatar
  • 65
0 votes
1 answer
158 views

Add custom schedule to wordpress

I'm making a Wordpress plugin, where I would like to set a WordPress cronjob, based on a custom schedule that I'm making. For some reason, it seems that I can't set my custom schedule. I'm using the ...
Giorgos Karras's user avatar
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 ...
w_lpz's user avatar
  • 613
0 votes
1 answer
399 views

Custom Elementor Widget Styling Issues: Front-End Styles Not Reflected in Elementor Editor - Assistance Needed

I've developed a custom carousel widget for Elementor using the Slick slider. On the website's front-end, everything looks and works as expected; the styling of the carousel is exactly how I want it. ...
SKOOMA's user avatar
  • 1
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 $...
Manoj Kamble's user avatar
0 votes
0 answers
36 views

Custom Plugin: WordPress Frontend Edit Cannot Update

I am making a custom plugin for my website. The purpose of this plugin is to add and edit posts from frontend. The add post is working fine, but the edit post doesn't work at all. When I update a post,...
M Mustamar Natsir's user avatar
1 vote
1 answer
190 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 ...
Claudio's user avatar
  • 75
1 vote
0 answers
126 views

How to make a custom Wordpress widget appear in the page/post editor and not just the global appearance settings

I am working on a custom widget plugin for Wordpress. I followed this tutorial which suggests extending the WP_Widget class and calling register_widget() on the widgets_init action. It works as ...
Anthony's user avatar
  • 696
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 ); ...
Alex's user avatar
  • 109
0 votes
1 answer
39 views

Form not submitting correctly when adding input type file

I have the following function in a wordpress function: function custom_form_display() { if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['custom_form_nonce']) && ...
Benjamin Carafa's user avatar
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 ...
Fatih ATEŞ's user avatar
0 votes
0 answers
23 views

Wordpress site: Page reloading (with changed get-param) calls the strange behaviour [duplicate]

For moderators: My post not the same and not answered by PHP __PHP_Incomplete_Class Object with my $_SESSION data, really! Because sessions is my finale attempt to solve the problem, before I used ...
Vit's user avatar
  • 3

1
2 3 4 5
10