Stack Exchange Network

Stack Exchange network consists of 174 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.

6
votes
0answers
279 views

Auto Load Plugin Hooks inside Must Use Plugin

I am creating a custom MU plugin to run on a multi-site network. I am working on a function that will dynamically include files containing additional action and filter hooks based on the active ...
3
votes
0answers
40 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 ...
3
votes
0answers
180 views

wp_get_nav_menu_items return results are insane

I was hoping to create a plugin that adds a new post to a Menu on the second sub-items. However I can't ever seems to get the orders correctly it some times work and sometimes doesn't. Last thing I've ...
3
votes
0answers
234 views

TechCrunch WP Asynchronous Tasks plugin still works on v4.7.5?

Does anyone know if the TechCrunch WP Asynchronous Tasks plugin still works on Wordpress v4.7.5? Plugin: https://github.com/techcrunch/wp-async-task I'm trying to get the action hook working ...
3
votes
0answers
165 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” ...
3
votes
0answers
105 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/ ...
3
votes
0answers
72 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 ...
3
votes
0answers
92 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 ...
3
votes
0answers
211 views

category_name not working (not showing up in sql query debug)

My plugin has a shortcode and it retrieves animals. There are filters/arguments and they all work well except the category argument or parameter. The category name(s) is/are well passed to my ...
3
votes
0answers
2k 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 ...
3
votes
0answers
107 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 ...
3
votes
0answers
394 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-...
2
votes
0answers
33 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 ...
2
votes
0answers
28 views

Is there a reliable way to keep track of how long a WordPress theme has been active?

I want to keep track of how long a specific WordPress theme has been active, not just installed. The end goal being I want to display a notice after a user has created x number of posts and the theme ...
2
votes
0answers
184 views

Hook (upgrader_process_complete) running moment

i want to use the upgrader_process_complete (documentation) to check if my plugin was updated (to run some scripts). My question is: when this action is triggered, WordPress is already running the ...
2
votes
0answers
153 views

Issue to get wp_get_attachment_image with cmb2

I have a problem get the image with cmb2, I have tried in many ways without successm according to the documentation, this is fine, what can I be doing wrong? add_action( 'cmb2_admin_init', '...
2
votes
0answers
37 views

How can I get the post content displayed in a text field that allows to edit posts?

I replaced my WordPress TinyMCE editor with a custom textarea field. Everything works well when saving the post but whenever I want to edit the post, the textarea field goes blank. I just want to ask ...
2
votes
0answers
335 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($...
2
votes
0answers
323 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
0answers
206 views

Output content to the_content before a plugin does

I'm using a plugin that appends to the_content() at a priority of 100. I want to place some content after the main content but before this plugin outputs. I assumed if I use a priority less than 100 ...
2
votes
0answers
307 views

WP All Import - Execute Imports

After I completed my CODE and finished my site, I now have another problem. I use a plugin called WP All Import to import my products. I want that the different imports are executed by WP All Import ...
2
votes
0answers
16 views

Skip file when plugin updated

Is there a way to keep a constant file in my plugin directory so that it doesn't get updated? I'm a developer and would like to have a file for users to add custom functions to in my plugin. When they ...
2
votes
0answers
2k 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
0answers
56 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
53 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
211 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
0answers
62 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
0answers
685 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
58 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
0answers
354 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
109 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
0answers
590 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
0answers
387 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
0answers
1k 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
993 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
0answers
963 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
0answers
777 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
80 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 ...
1
vote
0answers
10 views

Changing image size to full size in Gutenberg's block gallery

I'm using Wordpress 5.0 and I love it so far. The only problem I have with Gutenberg editor is that its "block gallery" doesn't work so well. I have some 4K screenshots in block gallery, but it looks ...
1
vote
0answers
26 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
0answers
23 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
15 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
125 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
16 views

How to remove traces from widget during uninstallation

I have a small plugin, which registers a custom widget and now I am wondering how to remove all traces of this widget when the plugin is removed through the administration. If I look in the database ...
1
vote
0answers
43 views

Change Product Addon price based on select Variation

I am running WooCommerce and WooCommerce Product Add-ons. Is there a way on a Variable product to have the price of an addon be different based on the selected Variation? Example: Three Size ...
1
vote
0answers
18 views

How to edit content before post update

I'm creating a plugin that enables the user to highlight certain words (long words, long sentences etc.) in the TinyMCE Editor. You can see a live version here: https://tekstr.dk/app I'm converting ...
1
vote
0answers
24 views

How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?

I am using the WYSIWYG editor as a custom field using ACF plugin to insert a custom table in the field. As a data, the table needed is simply the HTML Markup of it only, only attributes specific to ...
1
vote
0answers
17 views

Post category with counts been display like a menu

It is possible to display a post category list and counts like a vertical menu with some images icon in each post category.