Tagged Questions

WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.

learn more… | top users | synonyms (1)

0
votes
0answers
22 views

How to make a plugin theme-wide?

I have written a working plugin and meets the criteria. Although I've encountered an issue, I've noticed that it's only usable on the theme's functions.php that I write the function and specify the ...
-3
votes
0answers
14 views

Add on for plugin written completely in javascript

I'm writing a plugin with Backbone.js. I plan to distribute it under freemium model. But how'll I build addons for it? Because the only PHP code I have is the AJAX handlers.
0
votes
0answers
18 views

How to avoid hardcoded text in a custom page template?

I'm developing a company Website using Wordpress 4. This website needs some special, customized pages - with forms and GET and POST and a lot of stuff, so a lot of PHP code. Now, a CMS' main purpose ...
0
votes
0answers
14 views

Problem with user specific data being cached [on hold]

I have just installed w3 total cache and I'm having some problems. I have a shortcode on a page that uses the wpdb to query information stored in a mysql database. It uses a query that contains ...
-1
votes
0answers
6 views

Kento Post Views counter doesn`t work [on hold]

Kento Post Views counter for unique view doesn`t work well. I have Kento Post Views counter plugin in wordpress, but not working well. Sometime it appears double stats, the stats aren`t appearing ...
0
votes
0answers
10 views

Enqueue script with API_KEY as data attribute [duplicate]

I'm currently trying to create a plugin that connect with an online service who required API_KEY to be passed in the script tag, and I'm searching a way to do it the "Wordpress" way, is it possible ? ...
1
vote
2answers
29 views

Fatal error: Class not found in

I am working on a plugin for 'hooking' an extra payment provider into a checkout system. I have a class gtpCheckoutData in my function.php which calculates the prices. In my plugin I want to use ...
0
votes
0answers
8 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
-1
votes
0answers
14 views

The cheapest way of receiving multiple small payments [on hold]

I am looking for the cheapest and most convenient solution for one of the websites. Let's assume the website is providing paid weather service. There are 3 locations for which one can retreive weather ...
2
votes
0answers
27 views

add_rewrite_rule, plugin activation and plugin deactivation

I see a lot of example showing to call add_rewrite_rule in your init hook, e.g. function add_my_custom_rewrite() { add_rewrite_rule(... } add_action('init', 'add_my_custom_rewrite'); and in ...
0
votes
1answer
23 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
0
votes
1answer
34 views

shopping cart plugin development

I'm developing a new shopping cart plugin for WordPress. At a point, how to save orders, I am stuck, sort of confused. Actually I am not sure whether I should save order through options api or create ...
0
votes
0answers
12 views

Allow users to label or classify or group posts accoring to their own criteria

Is it possible to allow individual users to group posts according to their own personal classifications. Say one user wanted to class groups by read and unread ... or 'to read' or 'shared' etc. ...
0
votes
2answers
17 views

Adding Dropbox dropin js using wp_enqueue_script

I want to add a new Dropbox Drop In Chooser button to my site. To include the code in a simple page you use <script type = "text/javascript" src = ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
0
votes
0answers
23 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
2answers
33 views

Can a standalone app be made to work as a Wordpress plugin?

I just developed a tool for web site owners. This works as a standalone app with its own user and routes system and other custom elements. Now it seems Wordpress is getting more and more popular and ...
2
votes
1answer
26 views

Avoiding plugin name collisions with WP updater

I have a client who has a WordPress site that uses a custom plugin written for them by another developer. Recently, they ran the WordPress updater and one of the updates clobbered that custom plugin ...
0
votes
0answers
16 views

Execute PHP code of a plugin markup file

I am creating a plugin which imports html markup. I would like to execute some php on those markup files before or after it gets imported. Is there anyway I can do this? Right now if I add PHP to the ...
0
votes
0answers
16 views

Unable to find BP_Group_Extention

When I try to extend Buddypress' groups, I get false from the function-call class_exists( 'BP_Group_Extension' ). The function is called during my plugin initiation, and I am able to do other ...
0
votes
1answer
18 views

What happens when you create/edit a menu

I need to know this for a plugin I'm developing: What happens when a user creates a menu, add/remove menu items in the admin, what updates are made in the database, what tables/columns are affected?
0
votes
0answers
12 views

How to use in my plugin the Autocomplete for users and sites field?

i am building plugin for my multisite, so i need to be able to select some blog from the blogs list, and then get the blog id to use this id in another function. the best solution will be using ...
0
votes
1answer
22 views

How to hide page links from theme menu

I'm working on a plugin, I programatically create some pages in posts table, the links appear in the theme menu(front end), I don't want some of these page links to appear, how do I do this?
0
votes
1answer
26 views

Get post thumbnail in WP_Query

I wrote an Ajax suggest plugin and I want to get the post thumbnail, but don't know how. This is my plugin code: $s = trim( stripslashes( $_GET['q'] ) ); $query_args = apply_filters( ...
0
votes
0answers
16 views

Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”

i have question, how to hide the "shortcode code" when using the "editor" the same as wordpress do with "gallery"? my clients hate to see shortcodes as "code". And the truth, not only him, but a lot ...
1
vote
1answer
52 views

Is there an action like 'after_register_custom_post_type'?

I'm writing a small plugin for Visual Composer. I need to list all custom post types but I don't know when to call the query to fetch all post types. My plugin gets initialized by after_setup_theme, ...
0
votes
0answers
23 views

How to create team for users?

i trying to create team to manage all the users in more effective way in multisite. i want to create some temas like "support" "super admins" and etc... to each team we need to have option to select ...
0
votes
0answers
18 views

How to manage different admin notices for different blogs?

i am trying to create plugin that can manage different admin notices or any other information for different blogs. for example: i have in my multisite network with 50 blogs. i want to select some ...
-1
votes
0answers
14 views

Backend enhanced user search

I'm working on a WordPress website that has user database with important user information, so this user information need to searched thoroughly. as shown in the picture above I have a custom ...
1
vote
1answer
24 views

Properly licensing a plugin that uses Apache 2.0 licensed code

Am developing a plugin that I would like to submit to the WordPress.org repo. It's dependent on Apache License 2.0 code, so I know I should license my plugin with GPLv3 - it's allowed. So, how do I ...
1
vote
0answers
18 views

Deleting taxonomy terms and relationships on a custom post_type when a user is deleted

First off, I have a custom plugin that registers a custom post_type. When a user signs up on the site, a post is created using the custom post_type. The post is populated by the user's company name ...
1
vote
0answers
30 views

tinymce.get() returns error after ajax request

In the backend, after an event I make an ajax request which populates certain fields. The problematic field is the textarea, for which I use wp_editor like so: <?php $settings = array( ...
0
votes
0answers
23 views

Auto Create Page and Menu

I'm trying to create a membership plugin, I want it to be able to work with any theme, such that there are some pages that will be automatically added to the theme and the links to them automatically ...
0
votes
0answers
31 views

Show error, when selecting image in WordPress media uploader if params mismatch

Good day ! My question is following: I know how to show errors while uploading image from WordPress media uploader by using WordPress filter hook: But how to show same error box when user select ...
0
votes
2answers
44 views

Adding Image in readme.txt file of wordpress plugin

It is possible to add a gif file in the readme.txt file of wordpress plugin in the wordpress.org plugin repository? My plugin url is https://wordpress.org/plugins/wp-toggle-comments-form-fields/ I ...
-2
votes
0answers
22 views

wordpress multisite, assigen blogs(webistes) to industry/group/category

i am looking for solution to assign blogs(websites) to industry/group/category. when new blog is created give the user option to select the blog industry/group/category. if it's not possible, i want ...
4
votes
1answer
131 views

How Can I Add a Filter to Class Instance Only?

I have a custom class which I use for several cases extending it, for example class A { public function show_things() { print_r( apply_filter( 'yet_another_filter', array( 'coffee', ...
2
votes
0answers
64 views

Wordpress Media mime type filter problem 4.0

I have added new mime types with the 'post_mime_types' filter eg. PDF, doc, mp3 etc... Filtering by custom mime type on the upload.php page in media grid view works as expected but in list view it ...
0
votes
2answers
40 views

Proper way to replace the_content only for pages created by custom plugin

I'm creating a plugin that needs to replace the_content of only two specific pages that it created upon activation. Here is my code: add_filter('the_content', 'emd_content'); function ...
0
votes
0answers
25 views

Install and Activate WordPress Plugin from Repository with PHP

I want to install a plugin from the WordPress repository and then activate this using PHP code in my own plugin. I know I can activate a plugin using activate_plugin($plugin); but how ...
0
votes
1answer
28 views

Brainstorm - Slow Query from Plugin Need to Speed It Up

We use WP as the backend for a business directory. I have a plugin that queries based upon location coordinates looking for the closest 10 locations to a given "listing". This query is really slow ...
0
votes
0answers
11 views

Forcing ALL plugin Admin menus into a separate menu

I'd like to move ALL of the menu's generated by various plugins such as ACF, Layerslider, WPMU Dev etc, into a separate menu structure. In short, I'd prefer an item called "Plugin menu's" and below ...
0
votes
0answers
24 views

Dynamically creating classes for Widget API

So let's say I want to make new Classes for the Widgets API using some variables that the user can configure. The only way I have figured it out is to use the eval() function. This is due to how ...
0
votes
4answers
62 views

Why cant the WP Filesystem API read googlefonts.json?

I've inherited a site built with a theme by Highgrade (southcentral) which is built using the Redux framework. I'm seeing the following error in the frontend and admin panel: Warning: Invalid ...
0
votes
0answers
70 views

Issue on Counting CPT's Under Taxonomy Term

I am using this code to count number of Custom Post Type $tax_terms = get_terms($tax, $args); foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . ...
0
votes
0answers
40 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
7
votes
1answer
55 views

Add a new tab to Wordpress Plugin install Listing

When an user searches for a plugin from the WP Admin's Add Plugin area, I want to add a new tab(with a link to a page) next to the current tabs. The location where I want the link is marked in the ...
0
votes
0answers
21 views

Remove plugin page menu items but keep plugin active

I am in the process of creating my first plugin for WordPress. However, I have one small issue, I had to add a plugins page (5 of them to be exact): add_plugins_page('Apollidon Kalendar', 'Edit ...
0
votes
1answer
26 views

How can I save a password securely as a settings field

I have a plugin that requires the user to enter a password (to access an external site) into a form field on the plugin settings page. Right now this is just saved as plain text, but I need to make it ...
3
votes
1answer
47 views

How to add a link to Wordpress Plugin install Listing

When an user searches for a plugin from the WP Admin's Add Plugin area, I want to add a link/button to every plugin's listing area. Which hook should I use? The location where I want the link is ...