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
12 views

Get Commentor IP When Marking Comment As Spam

What I am trying to do is create a list of IP addresses each time I click Spam on a comment. The only issue I have now is, how do I get the commentors IP address inside this function. This is what I ...
0
votes
1answer
21 views

How should I use wpdb class to submit a form in admin dashboard?

I want to create a plugin for the admin to write his everyday message in the dashboard & display it on his website. I have two files, dailymessage.php and messageform.php. In dailymessage.php I ...
0
votes
0answers
12 views

Saving plugin settings - ERROR: options page not found

I've created a form for my plugin settings and set the action attribute of the form to "options.php" but when I submit the form I get "ERROR: options page not found." add_action('admin_menu', ...
0
votes
1answer
15 views

how to create table during plugin installation in side a class

I am creating oop base plugin. So how to create table during plugin installation in side a class.But I could not create table. This is my approach.What wrong with me. class Notification { ...
0
votes
3answers
25 views

Featured Image not showing in admin

Currently im making new theme and had the idea of adding featured image in the admin side of wordpress, unfortunately its not working this is what i have tried I have added this code in functions.php ...
0
votes
0answers
12 views

Wordpress editor filters out my data from $_POST

I am currently working on a translation plugin in Wordpress. I added a navigation bar on top of the editor like this: add_action('edit_form_top', array($this, 'add_tabs')); In that function, I add ...
0
votes
0answers
14 views

Wordpress / Woocommerce custom registration fields

I am learning php and I am creating simple registration plugin for wordpress and woocommerce. Everything works like a charm for wordpress but not for woocommerce. As you can see for woocommerce ...
0
votes
0answers
14 views

wp_set_auth_cookie cannot remember login

My code: namespace OKVOAuth\MyConnect; if (!class_exists('\\OKVOAuth\\MyConnect\\Google')) { class Google { use \OKVOAuth\Library\OptionsTrait; public $use_google_login ...
0
votes
1answer
14 views

Retrieving plugin options value saved through setting

Looking at this code below it work add options perfectly and saved them. However I will like to use those data at front page in my plugin short code. class MySettingsPage { /** * Holds ...
0
votes
0answers
14 views

Steps to Update a Wordpress Plugin That We Developed

We have our own Wordpress plugin for our site. Someone developed it for us some time ago. I am generally aware of how it works and am able to code PHP, JS, etc. and have made some mods on the plugin ...
-3
votes
1answer
27 views

How to modify WooCommerce plugin

I have install WooCommerce plugin in my project to take order from customer but i want to modify this plugin to perform below task 1.take order from customer and submit the order to the nearest store ...
0
votes
0answers
46 views

How to create plugin to get current train location using pnr no.? [on hold]

Create plugin to access to status of train by using pnr no. Can you tell how to create this plugin??
0
votes
1answer
10 views

Slug is not shown for my custom post type

Registering a custom post type as following and the slug input is not shown. Any ideas why? res = register_post_type( 'twig_anything_tmplt', [ 'label' => 'Twig Templates', ...
0
votes
1answer
17 views

Register Page Template from Plugin

I'm trying to figure out how to properly register a page template (and all of the associated assets, like CSS and Images) from a plugin. Basically, I've created a landing page that I want to live ...
-1
votes
0answers
14 views

What is the best place to find/hire Wordpress Developers? [on hold]

I'm hiring four Wordpress Developers (1 Sr, 2 jr's and a front end). I've posted on WPHired and Job.Wordpress.Net... Are there any other good places to post a job description like this? ...
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
15 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
8 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
52 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
22 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
22 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
29 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
9 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
24 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
21 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 ...
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
20 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
39 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 ...
0
votes
0answers
22 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
49 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
17 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
31 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
44 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
19 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
21 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
23 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
37 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
20 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
23 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. ...