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
1answer
9 views

Bypass product key

I have pro plugin from codecanyon with product key, which was used already. I couldn't use it in my new domain Is there a way how to bypass the product key via FTP ?
0
votes
1answer
6 views

custom post type plugin error

I followed the following to set up a plugin for custom post types: https://kinsta.com/blog/wordpress-custom-post-types/#register But i am getting the error: Parse error: syntax error, unexpected '', $...
0
votes
0answers
10 views

getting Sorry, you are not allowed to access this page when switching tabs

I'm working on plugin and created Top level admin menu with Settings sub menu.The Setting page has multiple tabs, [base options] [report options] etc. When I render the page for the first time, ...
0
votes
0answers
12 views

Get attribute for the selected variation - Woocommerce

I have a variable product with two attributes: condition and network. Both attributes have several items in them but I'm only interested in conditions for now: very good and good. I want to output ...
0
votes
2answers
23 views

Wordpress publish_post hook not getting featured image and meta on first publish, but works on updating title

I've been struggling to find a solution for this and I don't know if it's the Gutenberg editor or if it's the hook publish_post. Hook: function api_method($post_id) { // If this is just a revision,...
-1
votes
0answers
12 views

How to make a plugin that allows you to create a widget with a backend that can send post requests? [closed]

How to make a plugin that allows you to create a widget with a backend that can send post requests? I need to make a Wordpress plugin with a backend and a frontend. Could you tell me how to do this?
0
votes
2answers
12 views

Getting User email on logout. wp_logout

I have looked at a couple of different ways to check when a user, of a particular role, has logged out. The call is made within a plugin. In the main loop I have the following: add_action( 'wp_logout'...
0
votes
0answers
16 views

Activating child theme by “theme name”

I am developing a plugin where there is an option to install and activate the theme. Those are child themes and compatible with the parent themes. the problem is, the theme is installing correctly by ...
0
votes
0answers
11 views

How to remove email heading from default email template for woocommerce [closed]

I prepared a new e-mail template in customer-proccessing-order.php file. I'm trying to remove the variant template. I removed the order-details part. However, I could not remove the title and other ...
0
votes
0answers
8 views

WooCommerce React JS - Uncaught TypeError: Cannot read property 'createContext' of undefined [closed]

I'm in the process of extending the WooCommerce JS Customers Report to include additional columns and would like to be able to filter these via the advanced filters. I've managed to create the custom ...
0
votes
0answers
9 views

How to get total discount cost

I'm working on an email template (/customer-processing-order.php) in Woocommerce. Here I am trying to get the total discount amount. However, it always returns "0". I have researched two ...
0
votes
0answers
19 views

howTo let wordpress endpoint return html-page

i want let WordPress endpoint return a HTML-page. my plugin actually returns Howdy!! if i read web-browser at http://localhost/wordpress/wp-json/a0plugin/v1/testing i want get a HTML-page instead. my ...
0
votes
0answers
10 views

How to save image in uploads directory from custom plugin

in my plugin after a images elaborations I want to move this image in uploads folder. How I can do it? if (count($imagesCollectedIds) > 1 && $watermarkId) { $...
0
votes
0answers
17 views

How to show the posts listing on dashboard or custom page in admin panel?

I want to show posts listing(almost like the default post listing page) on the dashboard page. And if that is not possible then maybe on a new page in the admin area. This is the post meta that needs ...
0
votes
0answers
13 views

How can I add a success message to a mail sending form for a simple wordpress plugin?

I tried using echo but something's wrong in that echo code area. I got syntax errors and and an error saying unexpected token afterecho "Try again." <?php add_action("admin_menu&...
0
votes
0answers
11 views

Custom Post Type Capabilities - delete_published not working

For some reason, the 'delete_plublished_articles' capability on my custom post type doesn't work. I'm removing this capability from the administrator role, but I'm yet able to delete published posts. ...
0
votes
0answers
15 views

How can I hide the checkbox on the checkout page?

I am working on Woocommerce. On the checkout page, "Ship to a different address?" If the checkbox is checked, a new form opens. If the "Copy" checkbox is checked after this form is ...
0
votes
2answers
37 views

Change plugin descriptions

Is it possible to programmatically change the plugin descriptions otherwise provided by the plugin author? The text I've highlighted below is what I'm talking about wanting to change: I often find ...
0
votes
1answer
14 views

How do I fetch data from an external MSSQL database and show it on my wordpress site

I have taken a seemingly impossible project for a person of my skill-set and I am looking for as much guidance as possible. My new employer has a WP website where he has a custom post type and this ...
0
votes
1answer
19 views

Can't load a script in my plugin page

I'm trying to include two scripts, wp_media and my personal when I stay in my plugin options page, but Wordpress don't include it. Someone help? /** * Activate the plugin. */ function ...
0
votes
1answer
14 views

How to load plugin after page is loaded - pagespeed issues

is there a way to load a plugin, after the whole page is rendered and fully loaded? I have horrible pagespeed according to Google and webpagetools. One plugin (provenexpert), is loading several fonts ...
0
votes
0answers
32 views

flush_rewrite_rules() not working with update_option_{$option}

Will someone please explain to me why flushing doesn't work in my case. I added a custom settings page with a default value, but it doesn't work when I hit save changes. I use the admin_init hook to ...
0
votes
1answer
20 views

Run command “composer install” when activating wordpress plugin

I want to run the command : "composer install --prefer-dist" in a wordpress plugin in the hook register_activation_hook to install the require vendors. But when I trying to activating the ...
0
votes
0answers
4 views

How to change Cart text from First renewal to Next Renewal

I have woocommerce subscription plugin and there is text which says First renewal, I would like to change it to the Next renewal. Which is the plugin where I can find and change this value.
0
votes
0answers
16 views

user_register is having empty first name and last name

I am using the wordpress : User registration plugin. When users register using the form it adds the first name as well. but while using the add_action user_register the first name is always empty. ...
0
votes
0answers
9 views

Completely hide page from wordpress dashboard

I develop a plugin which create its pages: login, form, admin area. Creating pages done, these pages are available under Pages and Appearance/Menus. I would like to hide for example admin page ...
1
vote
0answers
26 views

I'm designing a plugin to create database indexes. Suggestions?

I'm starting a (totally open-source) little project to create a WordPress plugin that will add appropriate indexes to WP's MySQL tables to improve performance. (Some wp tables, notably wp_postmeta and ...
0
votes
0answers
8 views

Associate custom field with custom taxonomy with shortcode in backend

I am trying to associate a custom field to a custom taxonomy booked_custom_calendar. Custom field here is [notifications_user_id]. All this will be executed using a shortcode. When user clicks on ...
0
votes
0answers
11 views

wp_schedule_single_event not always running event

I'm having some problems with wp_schedule_single_event not always running the scan. We already learned about WordPress not always running events with the same name if they're scheduled too close ...
0
votes
0answers
16 views

Gutenberg - Call google map render function in save after DOM has been rendered

I have a bit of a dilemma. In the save function I need to call a function renderMap that renders a dynamic google map. However I need to call it after the DOM has been rendered. I can't seem to find a ...
1
vote
1answer
13 views

Using a post-signup hook to get user details

Update: I got this working with a different hook user_register. It looks like wpmu_activate_user was never triggering. I would still like to have this happen after the user verifies and sets a ...
3
votes
0answers
30 views

Gutenberg is there a way to know if the current block is reusable?

So I have developed some blocks using React, I save my css generated in the post meta, that's works fine. In the case of reusable blocks: Whene we set a block as reusable this block will saved as ...
0
votes
0answers
56 views

Correct way to expand custom WordPress plugin functions

I have written a plugin (procedural way) and I am trying to understand wich is the best approach to expand some of its functions by creating an other small plugin (which should expand the main plugin) ...
2
votes
1answer
11 views

Getting media library popup in custom plugin admin page

I’m creating plugin and I need to upload images. And I’m wondering if I can somehow trigger same popup as “add featured image” triggers. Is that possible? If not, how can I make an alternative? Thanks ...
0
votes
0answers
13 views

Personality quiz in wordpress using a plugin

I am trying to create a personality quiz in WordPress using a plugin 'quiz and survey master'. The plugin gives the ability to assign points to each answer but, the problem is , my quiz is based on ...
0
votes
1answer
10 views

Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all

I have a plugin which creates a page upon activation and then removes it on deactivation. As part of the page creation, I wanted to use a shortcode in the post content, so I added a shortcode with ...
0
votes
0answers
19 views

How to create docker image for plugin or theme wordpress?

I want to package a WordPress plugin or theme into an image so that it can be used in various containers later. How do I do that? Thank you
0
votes
0answers
20 views

How can i solve php upgrade problem

I am using a plugin that works on Woocommerce. While no error occurs on PHP 7.2 (eg 7.3) I get an error like the following in 7.2. The developer team is not helping. How can I resolve this error? ...
0
votes
1answer
20 views

How can I identify it as admin page or not?

I only want to display it on all pages without the admin pages. How can? How to detect is it admin page or not? My custom plugin file: ~/wp-content/plugins/mycplugin/mycplugin.php if ( not admin page )...
0
votes
1answer
20 views

Extend Elementor Archive Posts widget with a custom skin in order to show multiple badges

I modified my posts widget in Elementor with a custom skin in order to show multiple badges with following code: /* MULTIPLE BADGES ON POST */ /* --- */ add_action( 'elementor/widget/posts/skins_init',...
0
votes
0answers
13 views

How to create my own block

I would like to create my own block to show a random post in a page. I think I've to create a plugin to do it but I'm not able to show it between the available block so to be added within my page. Any ...
0
votes
0answers
10 views

JSON.parse: unexpected character at line 1 column 1 when sending payment request

I'm coding a payment gateway plugin for woocommerce but I'm getting stuck on this error when I send a payment auth request to the offsite company that processes the payments. Once the auth request is ...
0
votes
1answer
15 views

plugin dev - minimum base css specificity?

I'm developing my first really major wordpress plugin and I'm not sure how to approach specificity. I want to avoid inline styling completely yet I want to ensure my css declarations aren't interfered ...
0
votes
1answer
18 views

Using Wordpress to build membership Page

I wanna built a membership page, which does have the regular stuff for non-members like Landing Page, One-Pager, Contact stuff, imprint etc... and than there should be some sort of registration and if ...
0
votes
0answers
11 views

New Google Review testimonials should be getting updated automatically on the website

Google Review testimonials on our website, the last review on our website from Google Review is from Nov 2020, however, new reviews from this year 2021 should be auto-updating to the website. But ...
0
votes
1answer
14 views

GET request return value as error instead of success

I am trying to send response back to ajax request in js by using REST API. send request from ajax to server is okay and its processing okay. But to send the response from server to ajax, the ajax ...
1
vote
0answers
11 views

Amending REST API function without deactivate/activate plugin every time changes is made

I am working on WordPress development where I have to create a custom REST API in a custom plugin. But every time I am amending the the REST API functions, I have to deactivate and activate the plugin ...
0
votes
1answer
22 views

How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]

I am sure people must have tried this already but I am not able to find any good resources or guidance on how to create a complete report of a WordPress website weekly or monthly. A report that would ...
0
votes
1answer
28 views

How to update global variables in plugin activation callback?

Sorry for being such a noob. I'm sure this is an easy question for most. I'm trying to register activation and deactivation hooks for my plugin. In the docs, they warn about the activation callback ...
0
votes
0answers
14 views

How to create the page in WordPress plugin development. Clicking on button then a new page is created and also the URL created, so how to create that?

Can any tell me how to create that as I know how to register_post_type. register_post_type( $post_type['post_type'], array( 'labels' => array( 'name' ...

1
2 3 4 5
121