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 [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.

-1
votes
1answer
30 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: ...
1
vote
2answers
23 views

How to remove filter added by another plugin in a class

Ok I'm struggling here - I feel this should be straightforward but I'm just not able to get it to work. I need to remove a filter added by Woocommerce Subscriptions. The filter is part of the ...
0
votes
0answers
15 views

Changing login email with Feedback survey from the mOpinion widget

I originally setup the MOpinion feedback form in WordPress to use my email, but I cannot manage to change the email to the clients email address. I have tried removing the widget, and re-installing it,...
0
votes
1answer
31 views

How to add a new column with text fields to WooCommerce Cart List?

As attached images. How to add a new column with text fields to WooCommerce Cart List? Thanks.
0
votes
0answers
27 views

Populate ACF field with cpt permalink

I'm using acf custom database addon to store my CPTs and acf data in a database other than wp_posts and wp_post_meta. One part of the post_meta which does not copy over is the ...
0
votes
0answers
50 views

Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?

I'm currently using a plugin that generates a PDF for customers but the URL is way too long. For eg - https://www.mywebsite.com/wp-content/uploads/pdfuploads/666666.pdf. Here's the specific code from ...
0
votes
0answers
17 views

Last ID of the added file [duplicate]

How can I get the ID of the last file I just added to files? $data=array( 'date' => date("Y-m-d"), 'name' => $name, ); $data2 = array( '%s', '%s' ); $this->wpdb->insert('files', $data, $...
0
votes
1answer
31 views

Search database with WPDB using a php variable

I'm trying to do a basic search feature for my website database. I want to search the text content inside a custom database table using Wordpress and WPDB. For some reason the search is not returning ...
0
votes
0answers
13 views

Create slideshow from default gallery

I have a question. Is there any way, it does not matter if it' s code or plugin, to create slideshow from default Wordpress gallery. E.g. I am working on a website that has 5000+ articles. They' ve ...
0
votes
0answers
16 views

Multiple Post Thumbnails Not Returning URL for Background Image

I've been using the Multiple Post Thumbnail plugin with my custom post types to use a secondary, smaller image on my archive pages, while I have a larger hero image in the header of the single post (...
1
vote
1answer
20 views

Make specific products accessible only to a user role in WooCommerce

I am making a plugin to hide specific product category only for a user role. add_action( 'woocommerce_product_query', 'wcpp_hide_product' ); function wcpp_hide_product( $q ) { //if main query, ...
0
votes
0answers
17 views

CSS not working on number input nested in a table - Custom Plugin

I am having trouble getting my css to work for a number input which is nested inside a table on my custom plugin template page. I've used wp_enqueue_style() to load my css file and it has worked well ...
1
vote
1answer
41 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 ...
2
votes
1answer
56 views

Get product attribute for Simple product in WooCommerce

I need to get product attributes from product in WooCommerce, type product Simple product, some product can be as dropdown, but much options as radio button. How I can do this? How it possible? ...
0
votes
0answers
8 views

Apply a different filer and parse the entire document instead of just the_content

Good morning, I'm trying to modify a plugin, to lazy load my images (a3 lazy load). The problem is that this plugin is returning only the images in the content, but for some reason when we created ...
0
votes
0answers
26 views

Deactivate sub-plugin when parent-plugin is deactivated

I'm trying to build a child plugin which needs another parent plugin to work correctly. I've managed it so far, that the child plugin can't be activated when the parent plugin isn't installed or ...
0
votes
0answers
22 views

How can I override a plugin's submenu page and keep the same slugs?

I have a plugin and would like to change the callback function of an admin submenu page so that I can change the output. This is what I have so far (in a child-theme's functions.php file): ...
0
votes
1answer
25 views

Getting arguments for register_post_type from a plugin generated post type

I’ve taken over website from another developer and they used a plugin to generate a custom post type. The plugin is no longer maintained and is causing an error 505 when try and load the plugins admin ...
0
votes
1answer
15 views

How to use filter to disable adding a product to wishlist?

I am using a plugin on my website that made the following filter available: Added filter ‘tinvwl_allow_addtowishlist_single_product’ that helps to show/hide the “Add to Wishlist” button for ...
0
votes
1answer
20 views

Running multiple security plugins

Is it a bad idea to run more than one plugin that offers simialar seciruty features. I'm planning to use wordfence for security and jetpack for backups. But i see jetpack offers security features as ...
-1
votes
1answer
21 views

How do i remove “Powered by WordPress” from AMP?

how do I remove "Powered By Wordpress" from the AMP version of my website? It would be great if you suggest a CSS or Plugin for this. I use the basic AMP plugin.
0
votes
0answers
8 views

Collaborative POI wordpress plugin and website

I develop a site that is interested in both history and geography. My goal is to provide a collaborative space on my wordpress website to allow visitors to list places, monuments, etc., and add their ...
0
votes
0answers
23 views

How to properly add custom product meta to order meta in woocommerce

I have the code to add some custom product meta data to cart and then later pass them to order meta. Everything works fine but it feels like the add to cart process is quite slow which makes me wonder ...
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
32 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!.........."; } ...
0
votes
0answers
12 views

Scheduled cron event removed from list automatically after sometime

I have used two plugins for cron 1) Advance Cron Manager 2) WP Control I have added cron in both plugins, but it removes from queue after some time when there is no activity on website (frontenf/...
0
votes
0answers
6 views

AMP and custom inpage statistics

Recently I added AMP plugin to my page. But after that I had problem with tracking statistics of page usages on amp pages. I have google analytics and these are successfully tracked in google ...
0
votes
1answer
4 views

Add spacebar in WP List Table Search

I would like to add spacebar %20 or + on the redirect URL in the search, how can I do that with the add_query_arg? function bulk_search() { $redirect_to = add_query_arg( array( 's' => $_POST['...
0
votes
1answer
23 views

Settings Fields not showing up in Submenu Page

I'm working on my first plugin. I am having difficulty getting the settings_fields function to display the results of the settings fields' callback functions. I've been studying the settings api, but ...
0
votes
2answers
38 views

How to turn off email you receive when registered?

My client wants to turn off the email you receive when register.
0
votes
0answers
18 views

Plugins not activating on all multi sites WordPress

I have 2 multi sites on my WordPress .But whenever I try to install the plugin on the network and when I network activate them, the plugin gets installed and activated only on one site and not the ...
0
votes
1answer
38 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
20 views

Taxonomy counter on Taxonomy List(plugin)

I'm using this plugin (Taxonomy List by Muhammad Rehman) and apparently is not longer on develop or support. I need to show the main taxonomy (custom from my theme) and the child's taxonomies with ...
0
votes
1answer
19 views

SQL query, error

I have sql query but not work, i have notice: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE custom > ...
0
votes
0answers
18 views

EDD: Can't download items with All Access Pass

I'm having issues setting up the All Access Pass with Easy Digital Downloads. Whenever a user tries to download a products that is included in their All Access Pass it gives the following notice: You ...
0
votes
1answer
17 views

How to block access to certain WordPress pages using a snippet

I would like to block access to certain users on my WordPress site. I want only users with the "employers" user role to be allowed access to certain pages, so I tried creating the following snippet, ...
0
votes
0answers
8 views

Coupon code for woocommerce

This is my first time working with woocommerce and loving it so far. I'm not quite sure how the coupon system works.. but I need the following to be generated: 1) Generate a coupon code for 10% off ...
0
votes
0answers
17 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
16 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
1answer
25 views

Error after installing the WordPress plugin updates

I have trouble after update WordPress plugin. "Briefly unavailable for scheduled maintenance. check back in a minute." and then "This page isn’t working ptmitajayamandiri.com is currently unable to ...
0
votes
1answer
10 views

Multiple CF7 Forms causing multiple recaptcha requests

On some sites we add multiple CF7 forms for different enquires / services - the issues i've found though is that having multiple instances is causing multiple requests for the same reCaptcha. The ...
0
votes
0answers
25 views

auth error with react native and wordpress rest api jwt token

I am trying to user wordpress rest api with jwt token and react native but I have issues debugging with postman; jwt/token returns the token, and the user display, etc. jwt/token/validate returns ...
1
vote
1answer
24 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
0answers
17 views

wp plugin adds “pagespeed.css” after each css file

I have installed some wp page speed optimization plugins to my website. Now the website works faster, however one of the plugins adds its own file name ending, like this one: styles.css.pagespeed.cf....
-1
votes
1answer
60 views

How to Add Body Class, and Remember/Retrieve it Through Local Storage

I want to create a system, where upon click of a button, a body class is added and the value is stored in local storage. The value is retrieved from the local storage, and is put again in the body ...
0
votes
0answers
20 views

Question about custom plugin function

I'm fetching data from the database on a custom field that we have setup and this is the older PHP 5x code to pull that value from the table. I'm just not pulling the data. No error pops up either. I ...
0
votes
0answers
12 views

Conditionally Disable Plugins in MU Plugin - Working example, but looking for enhancement

The following working script is placed in the mu-plugins directory. It disables plugins within the $myplugins array if the page being viewed is not /contact-us. This is great, but I want to check for ...
1
vote
3answers
30 views

Display a text message if the field is not found and not if found

I am trying to display a message like "Sorry no information here" if a field is not found and if field is found, no message should appear. I am using the ACF plugin for displaying fields on the front ...
1
vote
1answer
57 views

WordPress Redirect Not Working - AJAX Callback Response Not Picked Up

I cannot get a redirect working in my custom wordpress plugin. I have a button on a page which triggers an AJAX action which calls a function. In my function (which is definitely being called as I ...
1
vote
1answer
35 views

Editing admin pages in WordPress [closed]

I’m trying to find information on how to edit admin pages in WordPress. Custom pages can be overridden in the site template, but I still do not understand how to deal with the admin. Note: In my ...