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
1answer
16 views

How to add conent (text) to Add New pages form of admin in WordPress

I am new to WordPress. I have created a Shortcode. Now I want to add description of Shortcode to Pages->Add New Page so the user can easily use the Shortcode which I have created. I want that text ...
0
votes
0answers
11 views

How to track purchases of users or members on wordpress cashback site ?

I am working on wordpress cash back site but couldn't get information about tracking all purchases..Its same as other cashback site who get commission from merchants and then share full or part with ...
0
votes
1answer
16 views

wpdb->get_var always returning 0

I am trying to run this statement: global $wpdb; $amt = $wpdb->get_var($wpdb->prepare("SELECT SUM(amount) as amt FROM wp_pay_table WHERE postid = %i", $pid)); ...but $amt always comes out as ...
0
votes
0answers
5 views

Strategies for a plugin to support CDN-enabled WordPress sites

I'm writing a plugin to manage favicons. Basically it: Store image files under wp-content/upload. Inject HTML in page headers with the URL of the images. I would like to support WordPress sites ...
0
votes
0answers
6 views

Displaying and adding categories on a plugin page, just like we do in a post editor

wp_category_checklist() is the solution to display categories with checklist and it is working fine for me now. But I would like to port all the things in the category meta box (not the metabox ...
-3
votes
0answers
18 views

Revolution slider fade away and scroll to next section [on hold]

Is there a way to let a slider fade away then automatically scroll to the next section and remove the first slider from the page? This is what I got so far jQuery(document).ready(function() { ...
3
votes
0answers
42 views

How to get term link that crosses different custom post types?

In my WordPress project, I have several different custom post types and they all share a common taxonomy. I am in the final stage of the project and now is time to link all custom post types using a ...
0
votes
1answer
19 views

update_option_{$option} not showing old value

I have the following bit of code (note, I put the mail() function in only to see what the values are): add_action('init','system_init_actions'); function system_init_actions() { ...
0
votes
1answer
18 views

How to add multiple custom URL variables?

I am building a Wordpress plugin that looks for different custom variables in the URL. The way I am able to achieve that right now is with this code: function add_custom_query_var( $vars){ ...
-1
votes
0answers
5 views

Price calculating plugin with each customer its own factor

So I'm asked to develop a price calculator plugin, let me describe it: Some options with each its own cost Each customer has its own factor stored in the database When a customer presses ...
0
votes
0answers
27 views

Add a box below admin toolbar via plugin

First of all thanks for your time and for your help. I'm looking to add a custom box below the admin toolbar on all pages via plugin(the blue one from the screenshot). In future i would like to add ...
1
vote
1answer
24 views

Should shorcodes in i18n plugins be translated and if so, how?

Internationalizing a plugin with half a dozen shortcodes like: function plugin_show_schedule( $atts, ) { extract( shortcode_atts( array( 'type' => __('week', 'mz-mindbody-api') ...
0
votes
0answers
8 views

Using a class to store i18n strings for global use in plugin

The following works, but I'm wondering if it's a sensible way to create i18n strings for use without my plugin: class Global_Strings { // property declaration // method declaration public ...
0
votes
1answer
23 views

WP_Filesystem usage within a block of code

What i am trying to do is to have this function working within my plugin block of code without having it as plugin on it own. My current and working solution outside wordpress is Save contents ...
0
votes
1answer
19 views

How to add quick edit and bulk edit fields to users admin section

Salutations, is there a way to add quick edit and bulk edit fields for the users section in wordpress. I have found a lot about post types and custom post types but i'm specifically looking to add ...
-2
votes
0answers
25 views

Woocommerce payment gateway development error return [closed]

I am trying to build a payment gateway for woocommerce, everything seems fine but I can't get woocommerce to process the callback function, I always get just '1' showing on the callback url page. The ...
0
votes
0answers
11 views

Practical limit on number of roles

I'm building a wordpress site that uses buddy press and a BP extension called BP Activity Privacy (BPAP). What the BPAP plugin does, is allows the user to set privacy settings for posts to the ...
0
votes
0answers
13 views

Create a Payment Plugin for a Custom wordpress webiste

I had got made a custom wordpress website. The Developer had provided me with PAYU INDIA plaugin plugin, but I have account with PAYUMONEY which is diff from payuindia. Problem : If someone can ...
0
votes
1answer
35 views

Admin AJAX doesn't work in plugin admin page - Even though code is copied verbatim from Wordpress Codex

So I have been working on this for... 3 days now - and have resorted to just pasting in the code directly from the wordpress codex to get that to work then go from there. That code however doesn't ...
0
votes
1answer
19 views

Is it save to require plugin.php early to be able to use get_plugin_data() earlier?

I'd like to avoid hard coding my plugin's version at multiple places. To realize this the function get_plugin_data() comes in handy. But here the fun comes to an unpleasant stop. Checking for a plugin ...
-1
votes
0answers
25 views

Modify Variable Product Variation Price In WooCommerce Programatically

I wanted to change the price of a Variable Product Variation Price Eg : I have Product A : Variation1 (200$) | Variation2 (300$) While loading the page in front end i wanted to change the ...
0
votes
0answers
21 views

How to select a template for displaying custom post type

Hi i know how to implement post types list in any page or template in worpress using code . for example $args = array( 'post_type' => 'home_banner'); $loop = new WP_Query( $args ); while ( ...
0
votes
2answers
47 views

Rewriting URLs with a query string

I am running into a headache trying to get some url rewriting working on a wordpress website, running Centos 6 for operating system. This is what I am trying to achieve. Current URL = ...
0
votes
0answers
16 views

Getting started with plugin development

I just started learning about plugin development, read a lot of beginners material etc. But I have one question unsolved. Where do I write the php code itself? Any program that can highlight syntax, ...
0
votes
0answers
30 views

Getting $postid into a wordpress plugin

I am trying to modify a wordpress plugin which I am using for music requests, to create a new better plugin... https://wordpress.org/plugins/music-request-manager/ The plugin is activated by using a ...
2
votes
3answers
44 views

Change of query var in pre_get_posts not maintained

I'm creating a plugin that adds a custom feed. I am using a pre_get_posts filter to change the posts_per_page query var to -1 (to get all items of a custom post type). However, if I dump the $wp_query ...
0
votes
0answers
26 views

How to Mimic WP Custom Fields Ajax Methods

I have an admin metabox that allows the user to add multiple items. I am attempting to mimic the effect and styling that the default WP custom fields metabox gives users on posts/pages. I have the ...
1
vote
1answer
43 views

Why not to include reference to /wp-admin/admin.php in Plugin

Contact Form 7 recently pushed out an update which caused a few conflicts in other plugins. WPCF7 Author explains that it's because plugins are including calls to wp-admin/admin.php in their scripts ...
0
votes
0answers
35 views

How to add metaboxes in custom settings page of custom post type?

I would like to add meta boxes under a custom settings page, which is under a custom post type. I can create meta boxes for custom post types and I can create theme options, but can't find any way to ...
0
votes
1answer
17 views

Category select options for plugin settings

I am using Aqua page builder and I want to incorporate dropdown catagory select field for that. <?php $my_options = array ('one' => 'My Pony','two' => 'His Pony'); echo ...
0
votes
0answers
25 views

Restrict a query for custom field

I am using a plug in, which stores tickets as posts (Awesome Support Plugin) in the plugin classes, there is a function to restrict the tickets loading in the admin panel, basically to show tickets ...
0
votes
0answers
64 views

WP AJAX is not working, always returns 0

I've checked any threads here regarding this and did a debug test which worked, I'd like to understand why my own code doesn't work as it presents the same functionality explained in every possible ...
1
vote
1answer
20 views

Creating Admin Plugin - Content of a page is displayed at global scope as well

I've started creating a WP plugin which should work only in Admin Area. I've managed to create top-level menu with required sub-menu items, but when I try to print content of my page, it prints it ...
0
votes
1answer
21 views

Hook into install email

I created a plugin that makes use of the wp_install method (this part is necessary for the plugin to work properly and this function needs to be called). http://wpseek.com/function/wp_install/ ...
0
votes
2answers
36 views

Plugin Loading Scripts and Styles on Every Page - Even when not being used

I have a plugin that is using Class style programming. I'm completely stumped - scripts are being loaded on every single page, even if the plugin is not being used on that page. Since the plugin ...
0
votes
2answers
35 views

A function that will remove HTML <div> and </div> tags from a string?

I need a function that I can use that will remove <div> and </div> tags from a string. I have tried esc_attr(), and even wp_strip_all_tags() --- none of them work. They all leave the ...
-1
votes
0answers
15 views

Using functions in ACF save fields not working

So I built a form based off of the fields that are made by the Advance Custom Fields plugin but doing anything with the field in regards to validation has caused issues. The issues will usually have ...
0
votes
1answer
22 views

Plugin Development - Class Constructor Not Firing wp_enqueue_style action hook

Writing my first Wordpress plugin that uses a Class approach. It is being called on a page via a shortcode. In testing, the shortcode is working and the shortcode specific php file is being loaded. ...
0
votes
0answers
17 views

Show Parent category and Subcategory

I need to show sub category in below to the respective parent category in wordpress Sidebar. Without using plugin I need to show the parent category and its sub categories in sidebar with following ...
0
votes
0answers
18 views

Registration Form - Activation Email

Good Day Everyone, As some of you know, I'm building a new User Registration plugin. I am trying to create an Activation email with an Activation page for new users, but I cannot find anywhere on ...
0
votes
0answers
25 views

How can I map a specific URL pattern to a plugin for processing

I want to send traffic of a specific URL pattern to be processed by my plugin. Based on that pattern, I will pull some custom post type information from WP, gather external info via JSON, aggregate ...
0
votes
0answers
21 views

add image and url to plugin form

I want to create a plugin which contains a form with Fields: Image, Title, URL and Description of the Ad which the user is posting to my website. I have created a classified website and now I want to ...
0
votes
1answer
51 views

Shortcode display outside the div

I have created a shortcode that retrives and displays a form.The content of the attribute in HTML. function check_my_login( $atts) { return '<form action="" name="" method="post" ...
0
votes
0answers
15 views

how to create new posts , edit_post , delete post and get articals from other site by using JSON API plugin in wordpress.?

I am developing an application to publish articles in Wordpress via JSON API, I need to take a picture with send the create new_post,edit_post and delete_post how can I do this with json api plugin in ...
0
votes
1answer
20 views

Information on plugin adding text when a post, page, or other such is displayed

I need to know what API a plugin would need to use to add text or HTML to the beginning or end of a posts's text when the post is displayed. I have searched on Google - but none of the leads I find ...
1
vote
1answer
77 views

How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145

I've looked at previous examples of this problem but I can't find a solution for what is causing this notice based on what I've seen from other people. This appears at the top of the screen when I am ...
0
votes
1answer
10 views

Undefined notice on unset field

Still trying to figure my way around Wordpress plugin development, how can I resolve this undefined error? This appears when I add a new post, it can't find the post so I'm trying to figure out how to ...
0
votes
1answer
25 views

configuration of .htaccess for add_rewrite_rule to make sense

I am trying this code from codex wordpress site function custom_rewrite_basic() { add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top'); } add_action('init', ...
0
votes
1answer
19 views

Export Posts with specific custom fields by sql

My development site has posts with custom fields. Meanwhile my live site has more posts added while I'm working on my development site. Now I want to export posts with specific custom fields from live ...
-2
votes
0answers
19 views

Featured image upload option not working properly?

I'm trying to make a new plugin. I hope it's maxim complete. but now I face a problem. When install my custom plugin then the Featured image upload option not working properly. It's show like a media ...