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
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
24 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
39 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
20 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
45 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
21 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
20 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
18 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
11 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
40 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
65 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
16 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
72 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
37 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 ...
0
votes
1answer
113 views

add_query_arg not work in admin

I have code: class some{ public function run(){ add_filter('query_vars', array( $this, 'addPar')); $this->some_body(); } public function addPar($vars){ ...
0
votes
1answer
29 views

When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”

I'm trying VersionPress for the first time. I downloaded the project from the VersionPress GitHub page, then went to Plugins>Add New in my dashboard and uploaded the zip file "versionpress-master.zip" ...
1
vote
1answer
78 views

Replacing a plugin function with a custom renamed function doesn't work

With WooCommerce and WooCommerce Bookings plugins enabled, I am trying to add a text line above the product time picker section to advise the customer that they need to select one of the options. I ...
0
votes
1answer
18 views

How to fix shifting header after installing speed / cache plugins?

After installing (and uninstalling) Autoptimize, Async JavaScript, BJ Lazy Load, and Leverage Browser Caching plugins, my header shifts back and forth on page load - can you help find the fix? I am ...
1
vote
1answer
25 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 ...
0
votes
0answers
26 views

Add a custom variable to Woocommerce Follow-ups plugin

I am trying to add a custom variable to Woocommerce Follow-ups plugin. In the documentation they have created a sample function for this witch can be viewed here: https://gist.github.com/75nineteen/...
1
vote
2answers
75 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
0answers
35 views

a weird attribute on every html tag

me and my friend working on a Wordpress site but we see it differently on our machines, He sees a weird attribute wfd-id="" on every html tag in google console when he inspect it, also I loaded ...
0
votes
2answers
31 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
36 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
33 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
34 views

Site broken by unedited php?

I have a wordpress website hosted in Plesk. I last looked at it a couple of weeks ago and all was well. I tried to go in yesterday and Plesk is telling me the wordpress installation is corrupt. It ...
0
votes
1answer
39 views

WP Job Manager Feature jobs from [job_dashboard] page [closed]

I'm using WP Job Manager Plugin. I want to make a link on the [job_dashboard] page which allow users to make featured their jobs. I'm added this code to job-dashboard.php: echo '<li><a ...
1
vote
1answer
13 views

How to Use Parameters with a Do_Action Function Within PHP Tags

I'm using a WordPress plugin that allows integration actions to integrate it within a theme. Using GeneratePress' Elements feature, I'm adding the action as a hook. Currently the code I'm using is: &...
0
votes
0answers
13 views

How to access this element through Dashboard to modify its content?

I would like to access and modify the plugin(?) below marked with red circle through Dashboard. (i.e. not through the generated html). Actually I don't know whether it is plugin or a fancy heather or ...
0
votes
0answers
13 views

Plugin to manage form submissions on admin panel

I am looking for a plugin, which is capable to manage form submissions on admin panel. So it should create an admin accessible interface to handle incoming requests/submissions. Administrators should ...
0
votes
1answer
65 views

Opening a JQuery modal window on click of a button with a JQuery plugin

I am trying to open a Jquery Modal window on click of a button. And inserting this Button into a plugins content template (WP SHow posts). I'm using jquerymodal.com's modal code, since I don't need a ...
0
votes
1answer
16 views

Uploading website to live causing problems to plug-in and layout

Good day! I am still learning on how to use wordpress. I have created my website in localhost then wanted to update my live site using my newly created website from localhost. I noticed that when I ...
0
votes
0answers
20 views

Is it possible for other plugins like Caldera Forms to have another plugins like Paypal?

Good day guys! Im working with a registration form with a lot of fields and payment integration. I used Caldera Forms because it easy to use but I noticed that Paypal which is the most important part ...
1
vote
0answers
25 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/...
0
votes
1answer
22 views

I am trying to make a field show and save from quickedit screen

I have a select box with some options. It appears in the normal product edit screen with the following code. function we_skroutzxml_custom_availability() { woocommerce_wp_select( array( ...
-1
votes
1answer
24 views

Merge tags in multistep Gravity Form?

I want to use a multi-step form where the user enters their name in step one, then on step two the form will say "Hello, [name]" with the rest of the content and steps to follow. Any ideas? EDIT: I ...
0
votes
1answer
33 views

Is it possible to arrange Custom Post Types from CPTUI into a Folder?

I'm using CPTUI to create taxonomies and categories for Facet-WP, which i'm using to sort and filter products on the pages i'm creating. This is the problem i'm facing :- As you can see, the Custom ...
0
votes
1answer
25 views

Add to array, redirect and display

I want add text to array and display after redirect and unset array. public function save($type, $value){ global $tab; $tab[] = array('type' => $type, 'value' => $...