Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [plugins]

Plugins are tools to extend the functionality of WordPress.Use the tag to mark questions related to issues and bugs faced in the plugin or its improvement. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

3,427 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
3 answers
676 views

Let readers suggest edits from the frontend

I'd like to make my articles editable at the front-end for any reader who visits the site. (More like a wiki). I don't really want to trouble them through the registration process. I have no idea how ...
Ken's user avatar
  • 163
5 votes
3 answers
2k views

Find out what is using PHP sessions in WordPress

Is there a way to find out what is using PHP sessions or spawning PHP processes? My Wordpress site gets heavy traffic (3.5 million hits per month). We discovered recently that we had permissions set ...
mayabelle's user avatar
  • 151
5 votes
1 answer
599 views

Disable plugins on cron and ajax page

I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
Humpty's user avatar
  • 51
5 votes
3 answers
1k views

Making plugin unique to not conflict with plugins with the same name

I have plugin that has the same name as other plugin uploaded to wordpress.org How can i make it unique so it doesn't share "View Detais" link and auto-update with other plugin uploaded to wordpress....
Danil Solodunov's user avatar
5 votes
1 answer
595 views

Cropping, Re-sizing and Saving images from one folder to another folder in wordpress

I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images. ...
Omer's user avatar
  • 275
4 votes
1 answer
744 views

How can I list only sites that use a particular theme or plugin?

I need to search through dozens of WordPress multisite (network enabled) installs for sites that use a particular plugin. How can I list only sites that use a particular theme or plugin, preferably ...
iroast's user avatar
  • 41
4 votes
2 answers
2k views

Advanced Custom Fields into functions.php

I'm trying to include a few custom fields I've created in my functions.php file so they're native to the theme I'm working on. However they're not showing up on the edit screens of the posts I've set ...
Josh Ade's user avatar
4 votes
1 answer
1k views

Give editors access to particular plugin - turn "admin.php" into "edit.php"

I'm using the Business Opening Hours plugin. I made it appear in the sidebar using the Client Dash plugin, but when the Editor clicks it, they cannot access it, only the Admins, how can I change that? ...
elfi812's user avatar
  • 41
4 votes
1 answer
9k views

Plugin updates are not shown

I have a site developed in WordPress 3.5.1. I have updated the WordPress to latest version (4.3.1), but it's not showing the plugin updates. It's showing all plugins are up to date, but i have already ...
amit singh's user avatar
4 votes
1 answer
2k views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
vitorf7's user avatar
  • 41
3 votes
1 answer
353 views

Loading class files via autoload method

We have core classes created for theme and we are moving those classes to client-mu-plugins. Is there any way we can load all of the classes without adding require_once function for every single files?...
Jignesh Bhavani's user avatar
3 votes
1 answer
3k views

How can I add a custom header to a custom template in a plugin without using the theme folders

There is a lot of documentation on how to create custom headers for a theme. For example, if I wanted to add a header named: header-custom.php I would add this to my template file: get_header('...
Jbingy's user avatar
  • 31
3 votes
1 answer
2k views

Add new password rule to Ultimate Member register form

I use Ultimate Member and classic form for registration. I have enabled "Strong password", but I want my users to at least fill their password with 1 special character (like "# % $ ...&...
Vincent Decaux's user avatar
3 votes
0 answers
363 views

How to fix wrong attribute error for Visual Composer Grid Builder?

Hello I am facing this issue in editing media grid layout of Visual Composer V6.2.2. Below is the error I am getting Fatal error: Uncaught Exception: Wrong attribute for 'vc_single_image' shortcode. ...
Ashish Jat's user avatar
3 votes
1 answer
2k views

Trying to add admin file upload form plugin

I'm trying to create an upload form from my admin page via a plugin. I've cobbled together some code from a few sources, including this one: https://www.htmlgoodies.com/beyond/cms/create-a-file-...
Jesse Aldridge's user avatar
3 votes
1 answer
225 views

How can I translate the name of my Plugin for other languages?

How can I translate the name of plugin for other languages? For example: When Wordpress is in pt-BR language, the plugin would be "Meu plugin". If the Wordpress is in en-XX language, the plugin name ...
Lucas Vendramini's user avatar
3 votes
1 answer
303 views

Claim Listing functionality - how to send email to users when their claim has been approved or denied

We have a claim listing plugin, it allows items(posts) to be claimed by users. It requires the user to "register" in order to claim that item therefore they have to enter a username and their email. ...
jand1's user avatar
  • 31
3 votes
0 answers
74 views

How to find out what blocks are added by a plugin

I am creating a plugin, which adds a number of blocks defined by JS/PHP as per Gutenberg documentation. I want to display these block names on an admin page. Is there a hook or function I can use ...
Aravona's user avatar
  • 585
3 votes
1 answer
828 views

$wpdb->get_results() does not fetch results with unicode 'WHERE' clause

I've just a simple query to fetch a students records by his name, written in Bengali. $student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name='আবুল কালাম আজাদ'"); Although my database ...
Tajin Ahmed Nipun's user avatar
3 votes
1 answer
262 views

How to link to YouTube videos with thumbnails?

I am brand new to WordPress and find it very confusing. I have a small blog and cannot find a way to easily add a small grid of YouTube thumbnails that link to those videos. I have looked at all ...
Zephyr's user avatar
  • 131
3 votes
0 answers
48 views

Yoast SEO blocking/re-initialising longer running process

I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database. This is really a long-running process (maybe over 30 ...
Sunny Batabyal's user avatar
3 votes
1 answer
3k views

Problem protecting a page with a password

As we know, there is a built-in option in WP to protect a certain page with a password. Under the general settings for the page, I choose to show it only with password and set the password accordingly....
TheCuBeMan's user avatar
3 votes
1 answer
918 views

How to add custom JS to tinymce in wordpress

So I want to enhance the functionality of the TinyMCE editor in WordPress by adding custom JS script and CSS to it. I was able to add custom CSS to it by using this method: function plugin_mce_css($...
Abiodun Adetona's user avatar
3 votes
0 answers
454 views

Install plugin remotely

I have seen a couple services ( ManageWP, BlogVault ) where we supply them with the admin login details to our WordPress site and they programmatically install their respective plugin and then connect ...
Anand Shah's user avatar
3 votes
1 answer
201 views

Detecting when a custom taxonomy has been changed and display alert?

I'm building a plugin with a CPT and custom taxonomy - location. Everything's been working fine except I need to add a dismissible admin alert when the custom taxonomy has been changed either from the ...
aberkow's user avatar
  • 240
3 votes
0 answers
250 views

allow arabic letters when register new account

How can allow arabic letters when register new account ? i don't need to lose any security. If any of us, Arabs, want to register in any wordpress blogs we have to use English letters in “username” ...
Ahmed's user avatar
  • 31
3 votes
0 answers
160 views

How can I rewrite a plugin generated URL?

I'm using the wpForo plugin to create custom profile pages on the front end of my website. The profile URLs generated by the wpForo plugin look like this: example.com/community/profile/username/ ...
Swen's user avatar
  • 1,374
3 votes
2 answers
537 views

How can I enqueue a style only when a particular widget is active?

I have a plugin which requires a style sheet for the widget. I am trying to register the stylesheet when the widget is created, however the style sheet is not being queued and the styles ignored. The ...
SelketDaly's user avatar
3 votes
0 answers
85 views

Custom values are not translated

I'm trying to translate my plugin. Inside plugin's root folder I have 'inc' folder, where located registration.php file. This file has a code, which adds custom fields to comment form. (I use right ...
anton's user avatar
  • 1,033
3 votes
2 answers
393 views

Calling shortcode in wp_localize_script strips result

I am working on adding some functionality on a Wordpress plugin which after a certain click needs to call on some shortcode through ajax. What I first attempted was to call the shortcode inside of ...
thairish's user avatar
  • 213
3 votes
1 answer
589 views

Under which circumstances is the .maintenance file not deleted?

When WordPress does plugin/theme/core updates, it creates a .maintenance file which temporarily puts the site in maintenance mode. Sometimes this file does not get deleted and users are locked out of ...
eteubert's user avatar
  • 156
3 votes
0 answers
409 views

How should I handle errors within a plugin?

Building my first serious attempt of a Wordpress plugin. I'm not sure how I should handle errors. I really just want to give the user some kind of message that the variable is wrong instead of ...
bestprogrammerintheworld's user avatar
3 votes
2 answers
3k views

pre_set_site_transient_update_plugins wont call on hosted webspace

I am trying to use pre_set_site_transient_update_plugins to update my plugin from a GitHub repository. For that I am using this example. On my Dev-System (MAMP for Mac Version 2.2) everything is fine....
Tim's user avatar
  • 31
3 votes
0 answers
2k views

Changing image URLs in media library

On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter add_filter('...
David Register's user avatar
3 votes
0 answers
1k views

wp_schedule_single_event function not working

I am testing the wp_schedule_single_event function and it is currently not working on my upgraded version of wordpress. It looks like the event is being scheduled but the code in my hook is never ...
DiverseAndRemote.com's user avatar
3 votes
0 answers
57 views

How ( and mostly at what time ) can i prevent the alternate cron from running?

I'm using the alternate cron version, but i need to prevent it from running on some calls, how can i do this? In the cron.php file i've seen on line 225 if ( defined('ALTERNATE_WP_CRON') && ...
Nicola Peluchetti's user avatar
3 votes
0 answers
541 views

post_content getting cut off on blank space on $wpdb->update

I am publishing the following post via xmlrpc <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html><head><meta http-...
ltfishie's user avatar
  • 755
2 votes
1 answer
25 views

How to include Font Awesome icons into 'menu_icon' from register_post_type() function - wp admin?

I would like to use font awesome icons instead of dashicons inside menu_icons argument of register_post_type() function or for add_menu_page() icon argument. I have found another page that suggest to ...
imagIne's user avatar
  • 83
2 votes
1 answer
50 views

Why is my drop down empty

For a wordpress challenge I need to make a dropdown with all categories and I need to use apifetch So I have this : /** * Retrieves the translation of text. * * @see https://developer.wordpress.org/...
Roelof's user avatar
  • 21
2 votes
0 answers
83 views

Filter custom posts based on the user role of author

I am using CPT plugin to create new custom post type, and along with I am using elementor and jet smart filters to display list of posts in the frontend and filter them. I am trying to filter out ...
Malani's user avatar
  • 21
2 votes
1 answer
161 views

Using a function to change favorites listing

Sorry - total newbie here with Wordpress development. I have the following plugin installed https://favoriteposts.com/ and it allows you to change the default output of the users favorites by using ...
Ashley Young's user avatar
2 votes
0 answers
1k views

Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin

I have a code I always used in my themes or child-themes. I'm doing right now a project with plugin-only as a solution, so I tried to copy paste some stuff from child-theme to plugin file, but I get ...
Paweł Bystrzan's user avatar
2 votes
0 answers
230 views

Passing RichText attributes to function onChange

I have four RichText elements in a custom Gutenberg block I am developing, and they are all very similar except for the "name" attribute, which is currently hard-coded. What I need to do is ...
Garrett Massey's user avatar
2 votes
0 answers
57 views

How to add new tabs in post.php

i would like to add meta boxes inside the new tab. I have attached an image where I want to add a tab. Kindly help me out if you have any solution, I have checked this solution but it does not use ...
Rajneesh Tiwari's user avatar
2 votes
0 answers
162 views

How to debug error message: Cannot modify header information

I'm experiencing some wierdness with a custom theme in WooCommerce. I know that WooCommerce is off-topic, but while debugging it, I've figured out that it most likely is another plugin, that is the ...
Zeth's user avatar
  • 858
2 votes
2 answers
489 views

Sort products without thumbnail in WooCommerce shop page

I would like to create a function that instead of hiding the products without thumbnails, would be ordered in such a way that the products with the highlighted image appear first on the shop page ...
Naycom's user avatar
  • 23
2 votes
0 answers
240 views

Override Plugin Script Fucnction in Wordpress

I don't know how to remove a specific function from a plugin. My plugin is Photo-gallery. I want to remove this function: function spider_createpopup(url, current_view, width, height, duration, ...
Ioflvoe89's user avatar
2 votes
0 answers
524 views

Create or Update thousands of woocommerce products via PHP

I have client with a cash register in the store. That register has an API from which I'm retrieving over 5000 products and syncing them with online store. I wrote plugin that triggers cron job every ...
kajdzo's user avatar
  • 23
2 votes
0 answers
146 views

How can I add hyperlink in WP_Error message?

I using below code for showing error message to users in my WordPress website if ( $wp_error ) { return new WP_Error( 'you_cannot_vote_on_restricted', __( 'Voting on restricted posts are not ...
mohammad's user avatar
  • 131
2 votes
1 answer
344 views

Capitalize All Titles and Headlines in Chicago Style

I want to capitalize all titles and headlines on my blog according to the Chicago Manual of Style. Since this is a very tedious and time consuming task to do it manually, I thought there must be ...
TheKidsWantDjent's user avatar

1
2 3 4 5
69