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.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Getting an error when my plugin is updated, but the files update correctly

I have a plugin that I am using GitHub to manage my updates through the GitHub Releases feature. Since this is a private plugin I can't put in up in the Wordpress Plugin Directory. The plugin ...
-1
votes
0answers
9 views

How can I make a dynamic website (rip.ie) with WordPress? [closed]

As I am a novice in the web development field, I wanted to clarify some questions running in my head. I want to make a funeral website (rip.ie) with dynamic features. Dynamic features can be like ...
1
vote
0answers
15 views

Add custom post type as submenu

I have a custom post type called 'Movies' that I want to add under WooCommerce menu after "Extensions" as you can see below: The WooCommerce page URL is /wp-admin/admin.php?page=wc-admin I ...
0
votes
0answers
7 views

how to delete network shared media images from child sites? [closed]

Multisite with shared media can allow to edit or delete permanently in media list mode? it is redirecting to master site trying to edit image is there any hook or actions i am using this plugin as mu-...
0
votes
1answer
12 views

Installing Fluent Forms + Formidable Forms in the same website, would it affect loadspeed significantly?

I have some functional needs that would only be satisfied by using both plugins at once (since neither of them has all functionalities I need, but just some/half of these functionalities). I am ...
0
votes
0answers
6 views

how to display value of acf field from selected elementor control

I have created elementor SELECT control that shows all post from 'post_type' => 'digital_card' now I want to display the ACF field from the selected post my ACF field name is business_name $...
-1
votes
0answers
16 views

get a youtube video and covert it to mp3 and uploading it to local media? [closed]

I am searching for any solution or plugin free or premium to buy that I have a website that we will upload to post a youtube video as all media uploaded to youtube and I want to convert it to mp3 and ...
0
votes
1answer
12 views

Woocommerce get_term_by() in transition_post_status hook doesn't works

Im having this code $concours_termine_cat = get_term_by('slug' , 'concours-termine' , 'product_cat'); get_term_by is returning false, after debugging the get_term_by function taxonomy_exists( '...
0
votes
1answer
11 views

A server-side hook failed when committing plugin code to SVN

We're trying to commit and push our initial release to the SVN repository assigned to us by the wordpress team. However when committing the code we're getting an error (probably because of the PHP8 ...
0
votes
0answers
5 views

My total checkout is not the same than my total cart [closed]

i'm trying to create an estimate form plugin on wordpress using woocommerce. I'm able to get the total price of my form on my cart but not on the checkout page. The value "prix" diseappear ...
0
votes
0answers
13 views

Allow editor access the custom plugin

I create a custom plugin that can also access the editor role, why it doesn't take any effect, is there something wrong in my code? public function __construct() { register_activation_hook( ...
0
votes
0answers
32 views

Cannot modify header information - headers already sent by (output started at ../misc.php:1281) in ..wordpress\wp-includes\pluggable.php on line 1329

Hello i'm developing a plugin and the wp_redirect was working well but now it's stop and send me an error that the header have already been sent. Little Schemas Home page form Post file to add_content....
0
votes
0answers
9 views

How to create wysiwyg in general settings of woocommerce

I've created textarea in genreral settings tab with this code and it works, no problem add_filter( 'woocommerce_general_settings', 'add_msg_in_general_settings' ); function ...
0
votes
0answers
16 views

Plugin Install Issue “-1” Appended to end of plugin name

At some point when zipping my-plugin.zip I gave it an incorrect name and installed it, causing my-plugin to fail when opening its admin menus etc. I then fixed the zip name, and attempted to install ...
0
votes
0answers
13 views

How to save array repeater field data in options api?

How can i save repeater field data in array in options API? i register a option name using register_setting() and adding settings field using add_settings_field() functions. But those is not taking ...
0
votes
1answer
12 views

Hide all Admin Notices and move on a separate page

I want to hide all 'admin_notices' from dashboard means everywhere. I've a separate Menu name "Admin Notice". I want to move all notices there so I can manage them separately by user roles. ...
0
votes
0answers
13 views

Add Buy On Whatsapp Button near Add To Chart [closed]

I want to add a button buy on whatsapp now near add to cart. My code is (I change it from a plugin Buy Now Button for WooCommerce) function sbw_wc_add_buy_whapp_button_single() { global $product; ...
0
votes
1answer
16 views

unregister_setting() vs delete_option() for plugin update

I have a plugin (my first major one) and I have some registered settings that are no longer needed. I would like to have these old settings removed from the database to tidy things up and not confuse ...
0
votes
0answers
9 views

How to make a preloader to avoid flickering effect for my plugin?

I developed a WP plugin that displays a full screen content chat. Problem is: the post that includes that plugin first displays the content and then the plugin : that creates a nasty "flickering&...
0
votes
1answer
15 views

Make downloadable ebook read online without download option

My site has downloadable ebooks only (all pdf, sometimes epub together). Now I want to disable/hide the download button after purchase; instead, a 'read' button to let customers read online, ...
0
votes
0answers
13 views

Google Web Core Vitals - management, how to in wordpress and advice

I maintain several small websites and know my CSS and HTML. However, when it comes to javascript and server side optimisation, I have no idea. I was advised to ask my question here where I initially ...
0
votes
1answer
19 views

How to access a wordpress plugin page or add posts without doing it from the Wordpress dashboard?

I am a creating a website on WordPress that uses a plunging called H5P which allows the creation of interactive content. as in the picture below. However the creation of the content is currently only ...
0
votes
0answers
11 views

How to create shortcode script for full screen?

My short code returns HTML elements that are inserted into .entry-content div I need my plugin to be full screen (no header, no footer, width and height:100%) Is there a "clean" way to do ...
0
votes
1answer
30 views

Detect if requested page is PWA on server side

I'm trying to determine if the user is browsing PWA on server side. On client side I can check if the browser mode is standalone via JavaScript and detect PWA, but on server side this is not an option....
0
votes
0answers
17 views

Allowing duplicating users with same user_login and user_email

I would need a solution that the system would accept duplicates on user_login. I found a plugin for user_email duplicates, but I also need for user_login. Any idea is welcome, Thanks :)
0
votes
0answers
20 views

Problem with create_function

I have a lot Plugins there was create_function depracated, the most i have fixed (Thanks for alle here the help a Newbie to learn coding), but there is on the dont work and i became a Error500. The ...
1
vote
3answers
38 views

How to load the plugin only when logged in?

as a matter of performance for the entire system, how to do it correctly, if there is a way, to make the code of my plugin read or interpreted only when the user will login, as it is only and ...
0
votes
0answers
33 views

How to debug plugin which makes 500 server error and AH02429 error in log

I´m making a plugin on a website. For some reasons, I got a 500 INternal Server Error. This website use the plugin wordfence and that´s really complicate to see what is happening. What I could test ...
0
votes
0answers
11 views

pretty permalink registration default wordpress page

Is possible to use permalink to redirect the user to the registration page?Also this one can be customized using an headless wordpress install passing the form fields using an ajax post request?My ...
0
votes
0answers
15 views

add datepicker to post edtor

I've created a wordpress headless installation that rely on vuejs and REST api for the front-end. I need to add into the classic editor a datepicker to give the user the ability to select a date that ...
1
vote
0answers
24 views

How to set up VS Code for WP plugin/theme development in 2021?

I'm trying to improve my WP theme and plugin development workflow. VS Code is my editor/IDE of choice and I'm pretty with it in general. However, setting up VS Code with debugging, formatting, linting ...
0
votes
0answers
10 views

Get admin css with javascript?

I need to take the "wpadminbar" color and put it as a background color for the plugin header. If the admin changes the color scheme the header color on my plugin also changes. Of course I ...
0
votes
1answer
22 views

WPDB: Update table

I am currently developing my first WordPress plugin and am currently a bit confused on how to change a record in a database. So far I have solved it using the $wpdb::update() function: public function ...
1
vote
0answers
16 views

Wordpress multiple custom post types capability conflict in a single menu

I have been trying really hard to find an answer to resolve a issue I am having but not successfull so far. So If there is a solution exist, Please just give me the link / reference to it. Let me ...
0
votes
0answers
13 views

WP Plugin for product RFQ (with both listed and unlisted product ability)

I'm upgrading my old WP website from having static product attribute/variants tables and a basic contact form (which has served me well last 5 years), to a more interactive RFQ (Request For Quote) ...
1
vote
1answer
40 views

Sanitizing, Validating and Escaping in WordPress (Plugin)

I am currently developing my first WordPress plugin. A few days ago I submitted it to WordPress for review. Unfortunately, the plugin was not (yet) published, because I still have to close some ...
1
vote
1answer
33 views

Programmatically modify an admin page UI of a WordPress site from my WordPress plugin

I'm trying to developing a WordPress plugin that can modify the UI of a page in the admin panel of a WordPress site. To be specific, I want to add a custom form to the woocommerce edit product page, ...
0
votes
1answer
44 views

How to add a default predefined thumbnail when creating a brand new post?

I'm making a plugin that has a custom post type and I need to add predefined content. I used filters default_title and default_content for the title and content but I can't find how I can add an ...
0
votes
1answer
32 views

How to use html inside a functions.php code?

I actually have a little problem while trying to use html inside a fuction code. It is something like this. /* AJAX for Posts */ function misha_loadmore_ajax_handler(){ $args = json_decode( ...
0
votes
0answers
6 views

How to get a plugin's previous version number before it was upgraded

A while ago I built a plugin and didn't have the foresight to add an option to the database storing the version number, I need to know if after an upgrade if the plugin was previously version xxx. Is ...
0
votes
2answers
19 views

Using WordPress PHP code, how to bulk delete only 100 subscribers at a time from thousands of users?

Using WordPress PHP code, how to bulk delete ONLY 100 subscribers at a time from thousands of users? (The following code tries to delete all 50k users at once and my server hangs. If I can delete only ...
0
votes
0answers
15 views

Delete associated featured image and pdf in media folder when a custom post type moved to Trash

here is a code to delete the featured image of a custom post type when moved to Trash. This works. Now I also want to delete a PDF associated to this post. Have a look, I am still doing something ...
0
votes
0answers
12 views

How to create a 1 to N dynamic dictionary-like interface in a plugin page?

Background: I am currently expanding a plugin that is used only over the Network in Multisite mode. We have a network of sites in different languages, they are not the translated versions of the main ...
0
votes
0answers
14 views

Information and Page from Wordpress Plugin

I couldn't really find the best solution for my problem - maybe I'm missing the forest through the trees. I developed a plugin that displays a html sign-up form for a newsletter. The collected info is ...
0
votes
0answers
56 views

Why does modifying the WP_Query in the pre_get_posts hook work for the front-end but not the REST API?

I would like to hide any post that has any of a certain set of custom taxonomies from public access. For example, a post with the "Access Group" taxonomy of "Finance Department" ...
0
votes
0answers
20 views

Wordpress loading progess - wp-blog-header.php

I have a doubt about wordpress loading process. In maintenance mode will the wp-blog-header.php file used to display the admin dashboard?
0
votes
1answer
36 views

Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection

So I'm putting a plugin together that will allow me to connect multiple client sites with an online service. I can get the service vendors snippet to load, but once you interact with it, that's where ...
0
votes
0answers
13 views

WP cookie is set but php says is not set and tries to set it again

I have a script that reads a cookie, but if it is not set writes a cookie. But, although cookie is set, sometimes the script returns several 'set cookie' in logs. I can not find why. Some idea? Thanks ...
0
votes
0answers
9 views

Customize Menu Structure Creating a Section Where you can add icons/imgs

Basically i would like to add a section in "menu structure". So, when i access to any page/post i can create (for example) a select with some font-awesome icons class to every single <li&...
0
votes
0answers
16 views

select member type buddypress registration

Is possible to let the user select a member type during the registratiin process in wordpress with buddypress installed? I need to customize the registration process to add some custom fields and to ...

1
2 3 4 5
120