Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
13 views

Form using admin-post.php gives 404 after submission

I'm creating a custom form for a wordpress page, and I'm using admin-post.php as my action. However, whenever I try to submit the form, I get a 404. Below is the code which outputs the form: ...
0
votes
0answers
5 views

How to update elementor javascript variable in the editor mode?

I have created a widget. But there is a js variable that i need to update. Say if change the value in the widget setting to 35px the javascript adds a margin of 35px. If the save the post the changes ...
0
votes
0answers
14 views

Plugin to draw links/codes from known list without replacement

I have a hard time finding an appropriate plugin to draw some links/or codes (from earlier preapred list) without replacement (without returning the codes/links to the list) in a simple questionnaire. ...
0
votes
0answers
28 views

wpdb update method is updating but not refreshing the current page data

I have used wpdb->update method to update the data and it is working correctly as it is updating the data in the database but the issue is the data is not refreshing on submitting the form . action ...
1
vote
2answers
18 views

array_map() for sanitizing $_POST

I am working on an options panel for a plugin. And have an array being posted and updated to the options table. I am using the array_map() function to iterate over the array with sanitize_text_fields()...
0
votes
1answer
26 views

How can I start Plugin Development?

I have expertise in HYML, CSS, Basic JS and PHP so for plugin development what should I learn and where can I start plugin development? Thanks in advance
-1
votes
0answers
27 views

how to match preg_match 2 word are same page we want second word not 1

let see my source code <?php class MEmbed_xvideos { public $url; public $user_id; public $category; public $status; public $video; public $errors = array(); public $...
0
votes
1answer
13 views

Translating plugin settings page - dropdown list

I would like to translate all items from button style dropdown list on the settings page in my plugin. Normally, when I want to translate something, I use this pattern: __( 'Theme style', 'qty-...
0
votes
0answers
17 views

Explanation for Elementor Code

I am trying to have use wp_locatize_script for the elementor widget. I am confused with the method to use. I want to pass a php variable to javascript. If i am using a script file the method has to ...
0
votes
1answer
22 views

Don't print customizer styles when no setting has been used

I'm adding some options to a theme through my plugin, I want to change this theme styles and I'm almost there... Now I need to know how I can hide the <style> tag when no settings are changed (...
0
votes
1answer
13 views

Shortcode and WP query using category attributes

I am trying to create a shortcode that shows the results of a custom query (calling menu items) for a takeaway business website. I have tried to get category attributes to work so that on the home ...
0
votes
1answer
22 views

how to do Thematic like this website using wordpress?

i'm building a wp site about nuclear conference, and want to make this "Thematic Areas" like this site, when clicking on any "thematic" it will popup in same home page.. the link of website:...
0
votes
0answers
24 views

wordpress form not saving or updating

i have been looking for a bug in my plugin am working on for days now and i haven't gotten any explanation that can solve my problem. the objective of the plugin is to save an array of options to the ...
0
votes
0answers
11 views

Initializing rest endpoint issue

I'm setting up a plugin to list a series of WooCommerce products. Sketched all structure and I find that the endpoint isn't being created and can't figure out what's wrong here. Plugin file <?...
-1
votes
0answers
10 views

What is the most needed wordpress plugin that users are looking for which is currently not available in wordpress respiratory? [closed]

I want to develop wordpress plugin and I want to know which is the most needed plugin so most of the users can avail the benefit?
0
votes
1answer
16 views

Get a list of Product Categories inside a loop

I am trying to list out product categories as a list Farm Cycle: 6 Months KADUNA The code below output as Farm Cycle: 6 Months, KADUNA add_action( 'wpo_wcpdf_after_item_meta', '...
1
vote
1answer
23 views

wp_set_object_terms not updating database without a die()

I have added custom taxonomy to media attachments. From the individual post page these are updating correctly, with some tweaks to get the column count updating correctly - and I can see these changes ...
-2
votes
0answers
8 views

Woocommerce | How Can I add location picker using google maps in the checkout page?

Can you please help to add the location picker field in the billing address in the checkout page using google maps? Our website is based on woocommerce. Thanks,
2
votes
0answers
21 views

WordPress settings API with tabs - options save only for an active tab

The problem is that whenever I activate tab and save options, all settings in the active tab remain as they are, but settings in other tabs reset to defaults. If possible, I would like to keep the ...
0
votes
0answers
7 views

Plugin to add product categories or filters in archive page [closed]

I recently bought the theme below. I was able to add a sidebar with product categories in the shop page but not in category archive page... is there a plugin that can achieve this? https://mylisting....
0
votes
0answers
11 views

Is there a way to programmatically add a DNS mapping for a Wordpress site?

I am trying to find a way to add a CNAME (a subdomain) to map to another website using the add a DNS Record option described here: https://en.support.wordpress.com/domains/custom-dns/#adding-custom-...
0
votes
1answer
30 views

How to create custom dynamic url

I want to create my own url like this http://localhost/wptest/content/programs/trainings-conferences/ I have create my own plugin and use this code. add_action('init','wpyog_add_rewrite_rules'); ...
1
vote
2answers
24 views

How can I free up the memory used by update_post_meta?

I've noticed that each call to update_post_meta results in a small increase in my memory usage. Normally, the increase is small enough to not matter. But I'm writing a CSV import function that calls ...
1
vote
0answers
26 views

Open Graph Object Debugger & url parameters - Page Not Found result

I am using a template on a page via a shortcode and using a URL parameter to indicate what data should be displayed. It displays perfectly on the site, BUT when you pass the page URL to the Facebook ...
0
votes
1answer
27 views

Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework

I am using the WordPress Plugin Boilerplate to show a form to the user via shortcode. I am just a little confused of the flow of data not so much the syntax to do it. My Main Public Class has a ...
0
votes
1answer
12 views

Page is loading after submit before the file is processed

I have built a user import page that imports via csv file upload. The issue I am having is that the page is loading before all of the rows (user information) is finished processing/ inserting users. ...
-1
votes
2answers
26 views

How to include a custom thumbnail with my WordPress plugin?

I am developing a WordPress plugin and I would like to show a custom logo/thumbnail on the "WordPress Updates" screen like other plugins do. What do I need to do to get this to happen? Right now it ...
0
votes
1answer
24 views

per blog metadata for plugin

I wish to have my plugin store metadata for each blog in a network (or just one if single site install). Most of the Google results are for post_meta and user_meta but I really need site_meta which ...
0
votes
1answer
20 views

Gutenberg table block with Bootstrap .table class

On my frontend I am using Boostrap 4, however Gutenberg block table has class <table class="wp-block-table"> so instead of creating new table style it would make more sense to append the ...
0
votes
1answer
16 views

Plugin Generate Unexpected output during activation

When i'm going to active my plugin that i create for sample , wordpress got me 1 unexpected output during activation ! This plugin actually has nothing but a Shortcode that will echo Hello ! I ...
-1
votes
0answers
25 views

Proper way of calling AJAX from plugin

I am currently doing it like this and I know that this isn't the right way. I have 2 plugin files which will be named as index.php and process.php. index.php will show the form while process.php ...
0
votes
1answer
18 views

Append php file to footer

I have javascript in my php file. and I want to load it in footer. Is any method for that?
-1
votes
1answer
15 views

SHARING TO FACEBOOK - FROM DYNAMICALLY GENERATED PAGE

I have a dynamically generated page in a WordPress environment. This page uses a simple shortcode, with no parameters, but the page is launched via another page and passes a URL parameter. This ...
0
votes
2answers
36 views

WordPress Environment: Dynamic Page using shortcode - how to change the page name for sharing

I am creating a dynamic page, in a WordPress environment. The page is created by a default standard WordPress page and then using shortcode. Combined with URL parameters in order to retrieve the ...
0
votes
1answer
14 views

Integrate separate web app inside wordpress [on hold]

I want to integrate a wordpress installation with a third party application, it's an online football game simulation. Is it possible to wrap it inside my wordpress installation, but with a separate ...
1
vote
1answer
42 views

Append country to 'pretty' url but serve same page

For one particular page on my site I would like to append the country to the URL. The reasons for this are purely aesthetic so the customer knows that the prices on that page are in their own currency ...
-1
votes
0answers
21 views

OTP page not login on entering mobile number on custom page in WordPress

I have cleared all cookies after that I have put OTP number to login page, but user could not login on that page. Please solve my issue. please check my code and response to find the solution $...
0
votes
0answers
16 views

How to avoid conflict if a plugin already have included open library?

I am trying to use the swiper the library. https://idangero.us/swiper/get-started/ But the Elementor plugin is already added that : https://github.com/elementor/elementor/tree/master/assets/lib/...
-1
votes
1answer
16 views

Using <style> tag or inline style attribute?

I have a widget in plugin that will display a list of items <li> and I'd like to add one color to those items as option (color picker)... The question here, do I throw that color as a: <...
0
votes
1answer
15 views

How to put a maximum real-time users limit

I have already done a search on google but almost all the information is about how to limit concurrent user sessions and limitations. So just want to know is there a way to limit the real-time users ...
0
votes
0answers
15 views

Add a download csv button in a custom admin page

I have build a custom WordPress admin page. In it i'm extending the wp-list-table class like demonstrate here https://premium.wpmudev.org/blog/wordpress-admin-tables/. I have a form that sets some ...
0
votes
1answer
31 views

Can't get wpColorPicker to work in a widget

I can show the color picker, I can change the color and see the save button watching that, however nothing is saved to DB and I'm getting Undefined index: my_color", file: "wp-content/plugins/...
0
votes
1answer
17 views

wp_list_table class is not safe to use

I m using wp_list_table is not recommended to use or unsafe is there any alternative of this class ? or is there any safe work around ? creating new class with the plugin is not a best idea i guess so ...
0
votes
1answer
21 views

Display time difference (6 hours ago) in a Soliloquy caption

Thanks for viewing. I am using a soliloquy plugin addon to display post date in slide captions. I want to change the post date to human difference or 'hours ago' format. I'm converting get_the_date ...
0
votes
1answer
12 views

Paid Membership Pro displaying a user name in PHP

I am using the plugin Paid Membership Pro (free version). Just below the header, if a user is logged into my site I would like it to say: Welcome Username How could I do this? This is how to get ...
1
vote
3answers
50 views

$wpdb -> Batch insert from XML File?

Actually im stuck on this! XML-File ~ 140.000 Rows Filesize ~ 9.0 MB LOAD XML INFILE 'file_name' isnt't allowed ( shared hosting! ) The supplier provides a single XML file with quantity and sku. The ...
0
votes
0answers
15 views

Placing custom post types as submenu in admin menu and moving additional admin elements around

So, in my custom Wordpress plugin I have two custom post types. My customer wants to have them grouped under one main admin navigation item. I go and create the main admin item using: add_menu_page(...
0
votes
0answers
28 views

Installation failed, trying to install ANY plugin

I get the following error for every plugin that I try to install. Can anyone tell me what is causing this?
0
votes
0answers
26 views

Wordpress OOP get current user question?

I have a simple plugin that Iam trying to use to learn OOP, please bear with me. I am setting up a part of it to show front end account data and want to grab the current user info. I know how to do ...
0
votes
1answer
13 views

Securing a plugin pop-up window

I have a plugin that opens a pop-up window and displays it's content in there, not using any of the default wordpress theme/style etc. My question is, what is the best way of securing access to this ...