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
7 views

How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?

Using the wordpress gallery below, I want to show the html content of an anchor tag so that when I click on a link to get to a specific gallery I will navigate to the anchor tag in the description ...
0
votes
1answer
8 views

Best practices/popular methods for distributing a program with a plugin?

Are there any best practice guidelines regarding how a plugin should distribute a third-party program with it's own installation? If there are no guidelines, then what are the most popular methods? ...
0
votes
0answers
9 views

use custom plugin js file in woocommerce setup wizard [on hold]

I want to use custom js code in woocommerce setup wizard. like here i write down some information for example if i integrate a google map auto fill and on the behalf remaining fields auto fill the ...
0
votes
1answer
48 views

Issue with post request to admin-post.php

I am trying to make a post request from my admin settings page for a new plugin. The following code takes me to a blank page after submit (URL is: http://192.168.1.33:3000/wptest2/wp-admin/admin-post....
0
votes
1answer
9 views

WooCommerce registration password field not displaying

For WooCommerce registration form we only have one email field and I want to add password fields for this. I have tried to find online help but there are few support pages only for repeat password ...
0
votes
0answers
10 views

Convert any video formats to MP4 - PHP/WordPress [on hold]

As except MP4 format, browser is not supporting other formats. I have heard about FFmpeg but how it works in my localhost that doesn't know! So is there any plugins or any library available that ...
0
votes
0answers
20 views

extra comma is appearing after shortcode attribute while creating custom gutenberg block

I have created a Gutenberg block which returns shortcode in RawHtml component but while returning dynamic shortcode in edit() function it gives extra commas appending in the shortcode, can anyone ...
0
votes
0answers
10 views

Is this best practice for Dynamically adding items to WordPress menus?

Is there an easier way too add this functionality to the menus page, instead of using the following code? Another words a different filter/hook/action that will make it, so I don't have to write ...
-1
votes
0answers
9 views

What libraries are available to connect a Python web app to communicate with WordPress via the REST API?

I have a python web app, and I would like to connect it to WordPress via the REST API. The app will need to communicate in two directions (i.e. the app will both need to send and receive information ...
4
votes
3answers
77 views

Plugin stability | Using a plugin VS Developing functionalities yourself

I work at a webdev company where we are experiencing the following problems: The plugin not functioning properly with other plugins that are already installed. Things that don't work the way we ...
0
votes
0answers
28 views

WordPress Thickbox Navigation Issue in Gallery

I am adding an image gallery via wp media uploader. In the frontend, I am trying to show these images in Thickbox pop-up. However, it shows the images in pop-up but when I navigate [next and prev ...
0
votes
0answers
34 views

want to confirm popup with “Yes” and “No” button when user click on add to cart

I am new in Wordpress so need help... I want to show confirm popup with the button "Yes" and "No" when user clicks on Add to Cart. after selecting "Yes" on confirm Popup, add a product to cart. If ...
0
votes
0answers
14 views

Javascript scroll eventHandler only working when I'm logged in in Wordpress

Trying to make a plugin in javascript. The code is working fine except the scroll event which only fires when I'm logged in Wordpress. The rest of the code (hopefully all) is working as it should ...
1
vote
1answer
39 views

How to get Metabox custom field to show checked if value is updated using post meta query?

I have two radio buttons as custom metabox fields for pages/posts. One radio button has the value of "enable" and the other has the value of "disable". My radio buttons will stay checked only if I ...
0
votes
0answers
12 views

Export button not displaying using jQuery DataTable Buttons Plugin

In a custom wordpress plugin, I am trying to add an export feature for the table that is displayed using jQuery datatable(https://datatables.net). Export buttons from the jQuery datatable buttons ...
0
votes
0answers
17 views

There is a problem in the gutenberg block I developed. Problem is with withInstanceId

I can get a unique id withInstanceId , but I get a bug like this on my block in dev console. Expected: <div id="deneme-carousel-1" class="owl-carousel owl-theme"></div><script>...
0
votes
0answers
10 views

Listing variable products as individual products?

Is it possible to list variable products as individual products? If this is not clear. Same question but different phrase:- Split variable product into single products while listing it. Kinda hard to ...
-1
votes
1answer
23 views

Combining JS files to one script

I am trying to combine all JS files - local and third party files. I tried using the following plugins to do the same: Autoptimize: It is just not combining the JS files to one Fast velocity minify: ...
0
votes
1answer
14 views

jQuery instantly executes (a button click and css change) on load

I am following this other thread to get jQuery into my admin settings page: https://stackoverflow.com/questions/28248113/jquery-is-not-defined-in-wordpress-but-my-script-is-enqueued-properly My ...
0
votes
0answers
10 views

How will i add an option under customizer the event calendar section?

What is the customizer section name? I want to add a field option under customizer The Event Calendar section. Or how will I add a field under The Event Calendar option? Can someone help me with that? ...
-1
votes
0answers
14 views

What is the recommended way to create configurable plugin with settings page?

What is the recommended way to create Wordpress plugin with few simple settings (eg. API key, username, password)? Where to store the settings? Where should the settings page be attached? Any ...
1
vote
1answer
70 views

Use a PHP file as action for a form in a WordPress plugin, what's the correct way?

I'm developing my first "serious" WordPress plugin using Devin Vinson's plugin boiler plate generated with this generator. Now I need to use a PHP file not present in default boilerplate as action ...
0
votes
0answers
8 views

How to include Twig in a custom plugin without conflicts

I've tried to include Twig directly in a plugin that I'm creating, installing it using Composer and loading it using the supplied autoloader as recommended in the documentation. Unfortunately, this ...
2
votes
1answer
41 views

Adding pre-publish checks with Gutenberg

Before publishing an unpublished article pre-publish checks are shown. How can I extend this programmatically, and disable the publish button if the checks are not passed?
0
votes
0answers
10 views

Updating WooCommerce Subscription Gateway

We had a developer build a plugin for a new payment gateway, but he did not build in the functionality to import the old data. I wrote a script to update the payment tokens through SQL to add the new ...
2
votes
1answer
32 views

plugin development: storing language specific options

I'm currently rewriting a little plugin that shows visitors a small info text. This plugin is German only so far and so I want to add multi language support as I am working on a page that should be in ...
-1
votes
0answers
18 views

Wordpress Taxonomy Filter By Parent

I am trying to create a search filter with the parent taxonomies. What I want is that when the brand(lambo) is chosen, the values ​​of type(urus) must be related to those of the brand. Currently I ...
-1
votes
0answers
11 views

How Can I Show WP Comment on a Custom Page Using Action Hook?

I'm using a WordPress plugin to output a custom post type, which comes with a modified WP comment form with customized micro data snippet. Hence when comment is enabled from wp setting, the custom ...
1
vote
0answers
17 views

Gutenberg: import dependency or assign from global variable?

When developing for the Gutenberg / block editor, I see two methods used in various resources. Let's say I wanted to use i18n The Gutenberg handbook sometimes does it like this: Define wp-i18n as a ...
0
votes
1answer
9 views

Avoid WordPress header bar when form submission using admin_post in the frontend

When form submission is done using admin_post in front end, then in action page header shows WordPress default header bar. How to avoid this header bar
-1
votes
1answer
30 views

Plugin to display text before a post

I am trying to display some text before publising post.When i add post i am getting error as Publishing failed my code is function adddata(){ echo "Welcome to my post!.........."; } ...
2
votes
0answers
22 views

Use php libarary in wordpress plugins

I need to work with excel files in my wordpress plugin and I should use the PhpSpreadsheet library. The problem is I don't know how to import this library in my plugin? Should I use autoload or ...
0
votes
0answers
6 views

Add data into the table after successful share on social media

I am using Listing pro theme.Theme provide's social share of different listing in the site that is Facebook,twitter,pinterest,google plus,reddit,stumbleupon,linkendin etc. I have checked in the theme ...
0
votes
0answers
23 views

is it recommended to use WP_List_Table?

At moment i am developing a Wordpress-Plugin where I have to print a custom table in the admin-menu. After a short research I found the solution with WP_List_Table. But on the Class Reference from ...
0
votes
1answer
28 views

Save user total active time after login in wordpress [closed]

I want to calculate the total active time of the user after user login in wordpress site. For this i am using the following hook in my custom plugin: add_action('wp_login', 'save_login_time', 10, 2)...
0
votes
0answers
14 views

User Information after facebook login using SDK

I am developing a plugin where I am trying to add facebook login. I have added both of my login button code as well as response code ( getting logged in user info after redirect ) in the same page and ...
1
vote
1answer
15 views

How can sanitize $_FILES['haq_slider'] field

I have a function function haqSliderHandleUpload() { global $haq_settings, $haqSliderImage; // upload the image $sliderfile = $_FILES['haq_slider']; $upload = wp_handle_upload($...
0
votes
0answers
11 views

How to show custom post type only within network admin dashboard

I am developing a multisite plugin. So I need a custom post type to manage few things within the plugin. I would like to use the inbuilt custom post type feature of WP. But the issue here is, we can ...
0
votes
0answers
23 views

How To insert array [ ] in wordpress

I put my code in my github can you guys help me figure this out trying to insert [ ] array to wordpress using add row javascript but data only send one. This is my code for the problem
1
vote
1answer
22 views

Redirecting to home page after login as custom role WordPress

I have a user with custom role; but when I login as a user with custom role it redirects me to the homepage of my site. I tried using this code through my plugin but still it redirects to the homepage:...
0
votes
1answer
17 views

Problem in plugin debuging in wordpress

I want to save extra user fields in custom table after user register. In my plugin I added user_register hook and I am checking this code while user register but I cannot find any errors and cannot ...
0
votes
1answer
35 views

WordPress Iframe for blog image

I would like to have an Instagram feed for featured image of the blog. Already I have Instagram feed blog post but I would like it to be also on featured image. Any idea how to achieve this? Link ...
0
votes
1answer
13 views

Plugin writing: access file that was just uploaded

I am having trouble finding a solution for following problem: The user should upload a file in the menu of my plugin; the file is uploaded to the media folder by using media_handle_upload(file), ...
1
vote
1answer
20 views

adding a new value to a serialized array in WP_option table

I'm looking for some help on how to add a new value to steralized data in WordPress. I'm trying to add a new option to an already installed plugin so I can add extra functionality for the client and I ...
1
vote
2answers
37 views

How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]

I need to remove checkout page field validation if a particular product is in the cart. Plugin code : add_action('woocommerce_checkout_process', 'my_custom_checkout_field_process'); function ...
0
votes
2answers
27 views

How to get current template file used by WordPress?

Consider I've 3 template files archive.php archive-books.php common.php <-- required_once by both archive.php & archive-books.php So whether archive-books.php or archive.php is being ...
0
votes
2answers
32 views

View all button on product page

I want to add view all button on my woo-commerce product page after pagination.after clicking the view all button all product will be open.
1
vote
2answers
31 views

Why is an action callback function from an instance of a class always invoking the same function from an instance?

I have a class whose constructor is the following: public function __construct( $content_type, $filter_fields, $meta_query = '', $taxonomy = '') { if ( !empty ( $content_type ) ) { ...
0
votes
0answers
15 views

Taxonomy Child Term, Counter is staying on 0

I'm stuck on the counter for the child term. See Image: What did i try? Make use of: wp_defer_term_counting(true); wp_update_term_count(); Both of this functions didn't work inside my code. ...
1
vote
2answers
47 views

How to Parse an Array of Elements in Gutenberg Block

I have a custom Gutenberg block which is attempting to take an array of strings and save them as <li> elements. Everything works as expected and displays correctly to the end user, but I'm ...