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,764 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
439 views

how to load tinymce external plugin

I'm trying to load external tinymce plugins but no luck so far. I know WordPress offers mce_external_plugins filter but it seems not make any difference. I have advlist tinymce plugin inside custom ...
2
votes
1answer
502 views

wp_enqueue_script fails to include in footer

In my Wordpress plugin I try to include two scripts in the page footer, like so: function my_interface_enqueues() { wp_enqueue_script( 'require-js', plugin_dir_url( __FILE__ ) . 'js/libs/...
2
votes
1answer
27 views

Reuse javascripts from plugins within the theme

I am trying to reuse the bxslider javascript that gets installed in a plugin. The page I am working on has this basic structure: SLIDER <-- configured in a plugin ...
2
votes
1answer
24 views

Cannot run the code after I activate the plugin

I wrote a plugin to write code into the wp-config.php – it should download a code file and add it to my wp-content. But I only can run the function manually. I want the plugin to run the function when ...
2
votes
0answers
426 views

Woocommerce cart is a non-object inside `admin_post` action

I'm writing a custom integration plugin for Woocommerce, to add a dynamic product to the cart. Right now, without the plugin, I make POST request via a form inside an external page containing the ...
2
votes
0answers
564 views

Plugin could not be activated because it triggered a fatal error. (No Error??)

I am having the error while trying to activate a plugin. "Plugin could not be activated because it triggered a fatal error." I set WP_DEBUG true from wp-config.php file, but there is no other ...
2
votes
1answer
42 views

Website dumps encoded result

So for some reason i get this result on my website By reading other questions and searching the web i found that something like this could have been a result of some caching plug-in that interferes ...
2
votes
1answer
525 views

Files being generated in multiple directories supposedly by WordPress (advanced_settings.php and common_config.php)

I have a few sites in a cPanel. A couple of them are WordPress. I changed to a new hosting provider and since then two files started being generated in multiple directories, even ones not from ...
2
votes
1answer
52 views

How to show popup to a group of users?

I'm wondering if that's possible and how : I would like to show a popup only to a certain group of users. I've looked into the plugin directory but didn't find anything that fits my needs. Can ...
2
votes
0answers
3k views

Adding a jquery script to plugin contact form 7

I have a jquery script that will allow todays date to autopopulate the Date form tag in contact form 7 plugin. This is not a function that CF-7 can do without a script. I don't want my users to have ...
2
votes
2answers
665 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 ...
2
votes
0answers
63 views

Remove obsolete plugins artifacts from database tables

I'm dealing with some long-running WordPress blog. It was moved to different servers several times, and the migration process haven't followed «the WordPress way» from time to time — just a database ...
2
votes
0answers
532 views

Use Wordpress with a custom OAuth2 provider

I have a fresh Wordpress installation and a working OAuth2 server in Node.js (made using oauth2orize). The only plugins I've been able to find let me use only the well-known OAuth2 endpoints such as ...
2
votes
1answer
312 views

WP theme with Backbone

What would be the best way to insure that a Backbone WP theme cooperates with standard shortcodes and other WP plugins that include script and style tags in header and footer. I know Backbone plays ...
2
votes
2answers
145 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 ...
2
votes
0answers
61 views

Keep user’s privileges on accessing contents in JSON response

I use WordPress REST API plugin to fetch WordPress stuff on a mobile app. What Access manager plugin keeps the privileges on REST API responses? I want restrict access to certain posts, categories ...
2
votes
0answers
295 views

How can I measure the performance of any WordPress Plugin or Theme?

There are many WordPress plugin or themes with nearly same functionality and features but, how can I measure the performance of any plugin or WordPress theme other than using P3 profiler plugin? I ...
2
votes
1answer
683 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? ...
2
votes
1answer
232 views

Displaying admin notice dynamically

I would like show the admin notice while post text is being edited (before Save post). I suppose admin_notice hook wont work in this (it doesn't for me). Any idea how to show some error message to ...
2
votes
0answers
64 views

Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update

My server is updating to PHP 5.6 next week. I manage about 30 WordPress websites. I looked for a plugin that would check if any of the code throughout the other plugins and theme would break with the ...
2
votes
1answer
102 views

How can I reuse the Wordpress search form for a custom plugin / widget?

I need to develop a custom widget to display posts, based on their ID. The user must be able to handpick posts. Right now, they can enter the post ID, but it is not convenient for them. Is it ...
2
votes
0answers
1k views

bulk change of image setting “link to” to “link to: image url ”

i want every image present on my wordpress site with setting "link to: none" or "link to: post url" became in "link to :image url" ho make this for old post and for new post ? i tried this code in ...
2
votes
0answers
60 views

Can I store WordPress media in different sub-folders?

How can I have my media files saved in different sub-folders of my choosing in WordPress? It just only use one folder for all media which make it hard to manage them. Just to be clear, I'd rather ...
2
votes
1answer
786 views

reorder plugin menu position

Looking for a function that I can use to reorder the admin position of a 3rd party plugin, and that will still work once said plugin gets updated. Backstory AIO webmaster and All In One Events ...
2
votes
2answers
137 views

How do I remove the entire left nav bar in admin for certain level users?

I know how to remove items from the left nav bar (hook into admin_menu and do global $menu; unset( $menu[ __( "Posts" ) ] ); for example). But it still shows a left nav bar (with nothing on it). I ...
2
votes
1answer
90 views

custom plugin - custom post type -Selectable options for User

Currently i am writing my first own Wordpress plugin and I have a few problems. I read / did a lot of tutorials, but i have the feeling that I'm not moving forwards. I can create my own Posttyp "...
2
votes
2answers
336 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....
2
votes
0answers
368 views

Getting a 404 when trying to load /wp-admin/plugin-install.php

I am not sure why, but the back-end of my site is running slow... even though it's running slow, all pages still load, except this one /wp-admin/plugin-install.php (the add new plugin page). I ...
2
votes
0answers
120 views

Wordpress with Composer and different plugins for dev/live.

I'm using a Bedrock-like setup where I handle Wordpress core & plugins with Composer. I have my usual plugins in my composer.json within the "require" block, and some dev related plugins in "...
2
votes
1answer
929 views

custom_list_table edit/delete bulk actions

so... this is a brand new chapter for me, i've googled for a solution and found loads but nothing working for me unfortunately. function column_title($item){ $actions = array( '...
2
votes
0answers
632 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
2
votes
1answer
208 views

Can I use the same textdomain in two separate plugins?

I have two plugins lets name them PluginA and PluginB. Both are part of the same project I want to internationalize the text. The question is if I use same textdomain 'myplugin' but make two files ...
2
votes
1answer
817 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 ...
2
votes
1answer
445 views

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want ...
2
votes
0answers
409 views

Hook before & after plugin / core update

I'm working on a maintenance plugin for my website and I want to enable it before plugin/core upgrade starts and disable it after plugin/upgrade ends. Any ideas ? Thanks! :) PS: all I know is I can ...
2
votes
1answer
762 views

javascript onload calling a function of a plugin

A friend created a plugin for me which allows the users to mark posts as read or unread. The code of this plugin is the following : edit of the code ! <?php /** * @package Read-Unread * @...
2
votes
1answer
250 views

Send Data to Wordpress from kiosk

I need to get a data from kiosk (think specific ATM machine) to wordpress database. Kiosk service providers told me to give them Gateway URL and Request format to send data. Im stuck on this, I dont ...
2
votes
2answers
851 views

Multisite Widget/Content

I'm using WordPress multisite and need to display content across all subsites in the sidebar. This is a network of 50+ sites so updating all 50+ sidebars with this content every few days is not ...
2
votes
1answer
182 views

Passing $this->get_field_name() to javascript

I've tried doing this one of two ways: In the form method of my Widget class (which extends WP_Widget), I have the following snippet, which sets a global javascript variable: if( $instance ) : ?> ...
2
votes
0answers
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('...
2
votes
0answers
1k views

jQuery Plugin to use Wordpress functions in AJAX request

I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
2
votes
1answer
365 views

publish_post plugin hook doesn't always pass $post->post_content

I've written a simple plugin that grabs the contents of a post, as the post is published, and sends them to an external site for archiving. This generally works but when dealing with posts that haven'...
2
votes
0answers
1k views

Plugin/Folder permission issues with Azure

Has anyone come across plugin issues when using Wordpress with Azure? I recently spun up a free wordpress install on azurewebsites.net, using PHP 5.4 and Wordpress 3.5. Once plugin in particualr, ...
2
votes
4answers
2k views

Using plugin functionality in external php script not working

I am encountering a strange problem which I couldn't solve so far. I'm calling a .php script via cronjob (Debian/GNU Linux). To use wordpress functionailty I added: define('WP_USE_THEMES', false); ...
2
votes
0answers
899 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 ...
2
votes
0answers
43 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') && ...
2
votes
0answers
82 views

gallery option is not available in media upload box in costum theme option page

I am creating a theme in which I have to create a sponsor's image gallery on the admin panel in theme option page. It's a slide show on the front panel. For this, I followed a tutorial to create a ...
2
votes
0answers
39 views

Get data from plugin People list in author template

I use Theme Mystique for my site, and the plugin People list. I have created several new fields for the profiles of authors in the plugin. Now I want to get these fields in the authors template. How ...
2
votes
1answer
169 views

Converting Attachment to Images?

I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page. ...
1
vote
0answers
8 views

Display by Category in Admin

I run a website that has different online courses. Each course is a post. Each category is a state in which the course is approved. The states change every few months. I am given a document that lists ...