The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

2,616 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

wp_generate_attachment_metadata is creating an empty array

I'm making a custom wp plugin for image optimization. I'm at the point that you choose the image, the script starts to optimize and put the new image in the upload folder. The problem is that i can't ...
1
vote
0answers
14 views

wp_schedule_single_event not working: cron job is triggered but nothing gets executed

I'm trying to execute a piece of code asynchronous. I tried to use wp_schedule_single_event like this in my WP plugin: function my_async_test(){ $fp = fopen(wp_upload_dir()['basedir'] . '/log.txt', '...
1
vote
1answer
16 views

How to toggle between two custom fields in WordPress woocommerce 'WC Product Field Group' plugin?

I have a full suit tailoring WordPress website and it using woocommerce plugin. I need 2 custom field groups to show in single-product page. Custom Measurements (Precise) In this method the client ...
1
vote
1answer
17 views

Passing an array from shortcode-function to filter-function

This might be a php question more than it is a wordpress question. I am not sure though, but please guide me if so. I am working on a trial plugin that I use for my training in the first stages of ...
1
vote
0answers
8 views

Plugin update failed - 'Installation failed: 504 Gateway Time-out 504 Gateway Time-out nginx/1.15.8' error message

Was using 'The Events Calendar' plugin on a website, plugin seemed to randomly delete itself and a php error message was shown. Now when I try to re-install the plugin I'm getting an 'update failed' ...
1
vote
1answer
12 views

Can't get custom posts of taxonomy to show

I have a custom post type called 'brand', with a taxonomy of 'brand-categories'. try as I might, I cannot find a way to display a list of posts in the current taxonomy. can anyone help? <?php ...
1
vote
0answers
12 views

Shrink down register_settings on Settings API

Instead of having so many function calls, is there a way that I can have one function call and all the fields under one section and then just call one section on the form? /** * Register each ...
1
vote
0answers
19 views

Show admin notice on incorrect value on form field

So I'm still learning about the Settings API on WordPress and can't seem to figure out how to handle admin notices on an empty database and then have validation. Registration: function ...
1
vote
0answers
11 views

add image crop function like in wp customizer

How to modify this plugin in able to select , crop image and add to gallery as post. Sample function is wp customizer for adding logo. https://github.com/ajvillegas/image-gallery-metabox
1
vote
0answers
15 views

Removing included CSS file that doesn’t exist

I tried to install a premium plugin for divi icons, But it wasn’t installed successfully. There is a CSS file added to the homepage https://www.example.com/wp-content/uploads/aspengrove-icons/...
1
vote
0answers
45 views

custom payment gateway in woocommerce failed to connect to remote api server

its my first time to create wordpress plugin, my task is to create a payment gateway i study this sample and also did some code on php using cURL here is the code. and it works. now on wordpress when ...
1
vote
0answers
236 views

403 Forbidden - You don't have permission to access /wp-admin/admin-ajax.php on this server

When I try to make a backup of my wordpress website through plugin I recieve the following error: "403 Forbidden - You don't have permission to access /wp-admin/admin-ajax.php on this server." This ...
1
vote
1answer
31 views

How to prevent users to download videos from lms website?

I want to develop a wordpress lms website that support woocommerce payment gateways. I've found some themes and plugins like: learnpress, wplms and much more Some of them doesn't support uploading ...
1
vote
1answer
15 views

How to allow an editor to edit all WordPress blog posts but have the last say as administrator?

I run a simple WordPress setup hosted on SiteGround with no staging area and no special roles. The blog grew so much over the last few years that I barely write any content anymore. I send a content ...
1
vote
0answers
21 views

Use gutenberg block editor on plugin page (outside of a post)

I'd like to use the block editor to manage content of the site-wide footer. With the classic editor, I simply need to register a plugin page and add a field that's just a wp_editor instance. I recall ...
1
vote
0answers
24 views

Plugin options page with live preview?

I want to build a plugin page with form options and a live preview to auto refresh and display the changes on the frontend. Is it possible to show a live preview of the frontend in the plugin options ...
1
vote
0answers
26 views

Add An Activity Filter By User Id In Buddypress Plugin

On the Buddypress activity page, you can filter by All Members, Favorites, Mentions, ect… How do I add a filter to only show updates from a specific user id? There is for the "All Member" filter ...
1
vote
0answers
14 views

Force media library editor to overwrite the original filename?

I use the WP All Import to bring in images and stock info via XML into my store. However some of the images that come from a 3rd party system are rotated wrong. If I rotate them manually in the media ...
1
vote
0answers
21 views

Display encrypted content on my website

Good day I am new here and to wordpress as well, please can someone tell me how i can automatically hide email addresses displayed on the front page(dynamic Content), see example https://quickleads....
1
vote
1answer
20 views

Force quit running background job

I am running background job by using add_action hook, hook starts on REST API CALL: if ( ! wp_next_scheduled( 'bg_job_hook' ) ) { wp_schedule_single_event( time(), 'bg_job_hook'); ...
1
vote
0answers
65 views

How to add pagination to wpbakery grid?

I have a theme with wpbakery page builder. I made a page to display blog posts using wpbakery grid. But I would like to display 5 posts per page and to use ajax pagination. I display 5 posts per page ...
1
vote
0answers
203 views

Programmatically Process Order through WooCommerce/Stripe Payment Gateway

My client has requested the addition of a questionnaire that, in the end, results in the order of a subscription. All of this takes place outside the normal checkout method. Currently, after all the ...
1
vote
0answers
24 views

Wordpress Sitemap including pages that aren't there

I dont know if this is a severe cache, or a bug of sorts, I've installed multiple "seo" plugins to try and fix this, trawled the file system, cleaned the database, I don't know what is generating this ...
1
vote
0answers
32 views

Memberpress functions/documentation

I'm using memberpress for my application, and I want to be able to get all user subscriptions in an array or object so I can manually loop them, among other functions. I cannot, for the life of me, ...
1
vote
1answer
135 views

Passing select control value to block

I have created a gutenberg block and a select control that has some class names. The select control is in its own panel in the sidebar. My issue is when I try to call the select controls value/size. ...
1
vote
1answer
13 views

How can I perform high-level database merging for WordPress within continues delivery?

I've a bit of a problem. I'm currently trying to realize a WordPress development process regarding to one of my old question / topic: https://stackoverflow.com/questions/48890019/wordpress-...
1
vote
0answers
10 views

How to set a CPT to have a page as a parent, then rewrite urls accordingly?

i have a CPT (called review) for review pages and I want to set these as children of pages i've created. right now my CPT slug looks like this: example.com/review/chewy-review but i have a page on ...
1
vote
1answer
142 views

AJAX in plugin wp_send_json() sending html

I wrote a plugin that calls a PHP function from JQuery and the php sends a json response back to the Jquery using wp_send_json(). The functions are all called successfully, but the json request sends ...
1
vote
0answers
37 views

Is there a standard way to listen for an on change event of a posts featured image

I'm working on an artist plugin which lets you upload/create a depth map image for jpg's in your media library. To do this, I created a custom meta box which lets you draw the depth map using canvas/...
1
vote
1answer
163 views

Landing Page Redirect Chain | http->https->https www

I am getting this error for redirect chain on GTMetrix when I check my website. The chain is as follows: http:// https:// https://www. I am using this plugin for HTTPS https://wordpress.org/...
1
vote
0answers
30 views

send_headers don't work on wordpress multisite

I have written a simple plugin to send some security http headers. I've tested it on various wordpress installations but on a wordpress multisite network it seems that the headers are not sended. The ...
1
vote
1answer
21 views

Broken featured images are uploading from frontend

I have a form at frontend i want to create post from frontend everything works but when i upload featured image , broken featured image is uploading. I saw uploads folder the image exists there but i ...
1
vote
1answer
69 views

Modifying Author Link to add Author Meta in URL

I have a plugin which adds a custom role called the trip_vendor. I am trying to edit or modify the profile url of this role. Currently, it is example.com/operator/username but I want to change it to ...
1
vote
0answers
284 views

Authorization header malformed. [jwt_auth_bad_auth_header]

I installed the plugin JWT Authentication for WP REST API a month ago, and manage to get it work with my integration, it was working perfectly until they update this plugin, now I got this error and ...
1
vote
0answers
23 views

Addition of custom option panel crashes Media Library & Admin Area

So, I was carefully following the Wordpress Codex to create a Custom options panel for a custom post type.(https://codex.wordpress.org/Creating_Options_Pages) Specifically, Example 2. Everything was ...
1
vote
0answers
127 views

Custom preview_post_link not working for draft post

I am trying to change the functionality of the preview button so the URL can be changed to the address I want. I am using the code below function preview_link_fix( $preview_link ){ $mydomain = '...
1
vote
0answers
126 views

How to install/enable mediaelement.js plugins in WordPress

MediaElement.js has a lot of useful plugins, such as jump forward, skip back, speed, etc. From my understanding (please correct me if I am wrong) WordPress core contains only MediaElement.js -- ...
1
vote
0answers
553 views

(Sticky Row) How do i make a row sticky in wpbakery page builder?

I want a row to get stick to the top menu so that it can act as meu for my user. For reference please see the image.
1
vote
0answers
19 views

How to output CMB2 select options from repeated groups select elements?

I've searched in previous posted questions but I can't find something similar (but if it's already posted, please let me know). I've got the following repeated group of fields, with a select in it: $...
1
vote
1answer
40 views

How do you export/download the file of an already-installed plugin?

I have a plugin I modified and I want to download a copy of it because it is different than the original version available for download from the plugin store. Is there a way I can do that?
1
vote
0answers
28 views

Plugins Deleted

I have a client whose site was broken by a plugin and instead of deactivating plugins, they deleted some kind of 'visual editor' plugin. We managed to get the site back up and running and updated all ...
1
vote
0answers
51 views

Delete query not working in plugin

<?php if(isset($_POST['deleteValues'])){ global $wpdb; $table = $wpdb->prefix . 'addkeywords'; $where = array( 'id' => $id); ...
1
vote
0answers
128 views

how does wp.media javascript library work?

I'm building a custom dashboard and I'd like to add a feature which allows a user to upload an image. However, by calling wp.media() (with a title, button & multiple args) javascript throws an ...
1
vote
1answer
56 views

SEO Friendly URL on dynamic product page produced via shortcode

I have created a product page in wordpress, /product. This currently takes the id of a product /product/?id=123 The page has a shortcode that then fetches and displays the relevent data e.g. [...
1
vote
1answer
22 views

WordPress multi domain - redirect

I'm new to WordPress and I have a WordPress site where I've created a landing page that needs to be opened by another domain. I would like accessing the second domain in the browser's address bar to ...
1
vote
0answers
30 views

Ability to make API calls out of Wordpress as well as executing SQL?

I'm pretty new to Wordpress, so I'm risking some downvotes here... but, I'm curious, are there any recommended plug-ins that have the ability to make REST API calls? I have access to a third party ...
1
vote
1answer
93 views

Access Wordpress data from external PHP application.

I am a volunteer in a non-profit organization. I have taken over maintenance of a number of apps written in PHP/SQL/Dreamweaver. The apps are over 10 years old. I am migrating these apps from PHP/SQL ...
1
vote
0answers
134 views

Can't create term for product attribute

Please help. I need to create product attribute term after I create a product attribute taxonomy. wc_create_attribute([ 'name' => 'Size', 'slug' => 'size' ]); // This will only work If I ...
1
vote
0answers
128 views

Basic Object Oriented plugin question

I'm looking to create a plugin that displays a custom posts label for posts that belong to selected categories. And since I'm new to OOP, I'm struggling to understand whether to use arrays instead of ...
1
vote
0answers
108 views

How to import multiple language mutations to polylang?

I have set of posts that i want to import to wp and they alel have 3 lang mutations. I used foreach($pole as $key => $objekt){ $postid = wp_insert_post(array('post_type' => 'etapa','...