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

Declaring a new woo commerce product type i get this error

Warning: Missing argument 1 for WC_Product_PJB::__construct() class WC_Product_PJB extends WC_Product { public function __construct( $product ) { $this->product_type = ...
0
votes
0answers
15 views

Store Variable to be used Across Admin All Post Page

In the main taxonomy admin page (All page, All post, WooCommerce Orders, etc.) I am looking to store a variable to be stored for the page and then be used by a filter for each individual item row. ...
0
votes
1answer
22 views

How can I give access to my plugin sections in admin?

This is my first plugin using roles and capabilities. How can I give the "subscriber" users access to my plugin in the WP admin, or make a menu for just subscribers?
0
votes
0answers
42 views

how to re-size revolution slider?

I am using classified engine theme for my WordPress website durentme.com in which I want the half size slider from default size and want to place categories up in front of slider like renttycoons.com. ...
0
votes
1answer
48 views

How To Change Post Author Default?

TL;DR question: How To Change Post Author Default? Original question: How to make admins always post as blogger (blogger set as author), when posting on a bloggers blog? What I want is to either ...
2
votes
1answer
70 views

How Can A Plugin Hook Itself To the End of Every Excerpt?

So far, I've been able to only consistently hook the_content, appending my plugin at the end. How can I test if the displayed article is not the_content, but an excerpt, and hook my plugin after every ...
1
vote
1answer
113 views

DataBase connection problem with PHPUnit and WordPress

I'm trying to run PHPUnit to unittest a WordPress plugin, but the error below keeps showing up. Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in ...
0
votes
1answer
93 views

Extending theme PHP class in plugin

I am trying to create a plugin that lets me extend upon a class defined in a particular theme. The theme has a class of 'ET_Builder_Module' Within the theme there are various other classes defined ...
0
votes
0answers
164 views

wp_verify_nonce fails always

I have created nonce fro my plugin and trying to verify it with another plugin pages. it fails always. both we are creating nonce with same parameter. why it fails. Plugin name : Wordfence it creates ...
0
votes
1answer
85 views

Customizer Not Saving Options

I created a custom header option in the customizer and am having a few problems i just cant work out. All the codes are working, ive checked multiple tutorials as well as the wp codex and cant seem to ...
0
votes
1answer
35 views

How to search on the field that stores escaped strings?

I have custom tables in the database i.e. g_projects with loads of columns. Data is stored in the table using the Wordpress native insert query i.e. $wpdb->insert, hence they are escaped. For ...
0
votes
1answer
17 views

Custom Plugin: Point to `template_directory`

I am creating a plugin and I want to load the content of a folder. The folder is in the themes folder. I can't seem to point to the folder from the plugin. I can do it if the .php file is also in the ...
0
votes
0answers
386 views

WordPress REST API Plugin Development - Add Custom Endpoint

I have this question on Stack Overflow but thought here might be a better place for it... I'm almost certainly doing something stupid - or rather not doing something obvious that I should have done. ...
0
votes
2answers
74 views

How to render a template file using shortcode inside a plugin

I have this plugin I created that has a custom post type and a template file that renders the posts. I want to be able to render the template in any page using a short code. So what I created was ...
0
votes
0answers
28 views

how to make field taxnonmy for parent category & other field for child category in acf create post

very nice plugin, I really loved this plugin and helped me more on our project.. im using this plugin for creating custom post for user/client who registerd on our website, our website using for sale ...
0
votes
2answers
60 views

Add Top-Level Menu that opens URL

Below code adds My Page button in Admin Menu. It will take you to your author page when you click on it. However, it also opens up new page(Empty page). I want it to just take you to author page and ...
5
votes
1answer
56 views

WordPress updates defined vs add_filter?

I'm trying to create a WordPress update automation plugin. here I got two option to make enable and disable the updates. Via define ex :defined( 'AUTOMATIC_UPDATER_DISABLED',true ) 2.via ...
0
votes
0answers
49 views

Web Application Framework Compatibility with WP Plugin

What Web Application frameworks are compatible with WordPress? For example; can I use Angular.JS or Zend in my WordPress plugin or will I run into compatibility issues or roadblocks that wont allow me ...
1
vote
0answers
291 views

Getting following web services error after activating the Rewards Plugin

When activate "sumo reward points" plugin and run this http://imexleader.com/webservice/login.php?action=login&username=sanjay&password=san123" webservice. It gives me following errors: ...
0
votes
2answers
38 views

add shortcode heading showing multiple time

Hi my code is below for adding shortcode in posts. when i am adding shortcode two times it shows me heading two times that i added in code "Recent Posts" is there is way to show this heading only top ...
0
votes
2answers
235 views

Run JavaScript validation script on form submit in plugin

I have created a small custom plugin which is just an HTML form. The HTML form is echo'd out using PHP and it includes a small JavaScript function that I want to run on submission. I cannot get it to ...
0
votes
2answers
40 views

What is the proper way to include Bootstrap when executing a shortcode

I am trying to include bootstrap only when the short-code function executes. It gets included but it affects the other tags of the theme. The only way I can get around this is including bootstrap ...
0
votes
1answer
236 views

Submit form to a different PHP file in the same plugin folder

I want to submit a form to another PHP file which lays in the same folder: wp-content/plugins/my-plugin-folder The form action attribute looks like this: <form name="lookat" type="submit" ...
0
votes
0answers
49 views

class for the current page in wp_link_pages with next previous and number links

i want to wrap the current page number in tag, currently everything is working fine my output display like this ( prev 1 2 3 4 next ), now i need to add a cuurent class to active page, my code is as ...
0
votes
0answers
26 views

Can I use a hook other than 'init' to handle form submissions?

I'm developing a plugin that handles form submissions at several different points. As such, I was relying on being able to use global $post and get_query_var to determine which stage the user is at ...
0
votes
0answers
53 views

create post of acf frontend not published and not trashed

im using advanced custom post pro for user guest post and all works fine.. but in admin post screen the post submitted been draft its ok, but when I click to publish not publishing or when I click ...
1
vote
1answer
31 views

Plugin: register custom post types, child ready and performance best practices

I would find best practices in performance, clean code and child theme ready, for plugin that add some custom post types to my theme. What di you think about something like this? if ( ! ...
0
votes
1answer
62 views

How to hide or rename “X” and “x-child” references in website source?

We have been asked us to hide/rename the “x” and “x-child” references in our website source, and generally the entire WordPress (wp-content) folders. In particular is it possible for me to rename or ...
0
votes
1answer
17 views

Managing Custom Designed Content

I designed a simple page that contains a styled image element and a styled paragraph of text underneath. The image and paragraph of text are related, so that one will never exist without the other. ...
0
votes
0answers
290 views

How to export table from database in CSV file format (making custom plugin)

I am making a plugin. It stores emails in table of a database via html form and displays the emails in administrator page. I also want to include a button, that enables the export of emails in CSV ...
0
votes
0answers
32 views

action callback, for action dispatched as reported by hook sniffer, not called

I installed the plugin https://wordpress.org/plugins/hook-sniffer/. Action Event Firing Order: Array ( [muplugins_loaded] => 1 ... [the_post] => 3 ... ) ... yet function ...
0
votes
1answer
20 views

Stop theme displaying comments

So with all comments disabled on pages/posts theme's still display any existing comments. Is there a way to programmatically stop this happening without adjust the theme's code? My plugin uses ...
0
votes
0answers
49 views

display gravity form fields on single.php

im using wordpress 4.2.4 and gravity forms plugin for guest post... I created some fields of post fields such as: title post body post post image name field years field for user or guest ...
0
votes
1answer
37 views

How to customize 'recurrance' of' wp_schedule_event'?

I am new to WordPress development. I build a function to send email twice a day with wp_schedule_event. My recurrance is twicedaily. Is this possible to change twicedaily time to 9:00 and 14:00. If so ...
0
votes
0answers
40 views

Categorizing or tagging post comments

To implement a particular requirement I want to be able to categorize/tag post comments as well. Is there any plugin that does it? Or is it even possible? For example: there might be a post and some ...
0
votes
1answer
35 views

adding custom code as a wordpress plugin

i have written a small piece of code so when a user forgets and resets the password it will be emailed to the user currently i have added that code directly to the wp-login.php page do_action( ...
0
votes
0answers
22 views

Adding list of Indexes in wordpress document

I have been exploring wordpress to use it for documentation puposes. I'm stuck at a point where I am unable to add a list of Indexes to the document. Can I add indexes to a wordpress document the way ...
0
votes
0answers
39 views

Display the fields created of advanced custom field plugin on user submitted post plugin

I need to display the fields created of advanced custom field plugin on user submitted post plugin for guest posts. I've tried this code : <?php $args = array('post_id' => 'new', 'field_groups' ...
1
vote
2answers
571 views

How to add a button to custom post type's posts-page

How can I add a button to a posts -page. (In this case a custom post type). I'd like to place it next to, or near, the "Add new" button, to import content from a web service.
0
votes
1answer
40 views

Licensing a Plugin [closed]

I am developing some paid for premium features for my plugin which is already available in the WP Repo. What are the best ways to validate licensing etc. for premium features? I want to continue to ...
0
votes
0answers
37 views

get publish / move to trash post URL

I'm having some issues finding the URL's for the publish/update and move to trash buttons. I have something like this : <a href="#" class="menuu-item"> <i class="fa ...
0
votes
1answer
145 views

What might be the reason of Couldn't fetch mysqli_result on another domain?

I'm developing a plugin and it works fine on my Wordpress website, but I've tested it on other domains with different Wordpress instances. When trying to activate the plugin on some other sites and ...
0
votes
0answers
34 views

modify the events calendar for wordpress

need help with ( the events calendar ) for WordPress, I'm trying to add day of the week under the number but its adding 5 days of the week under each number. see example here this is the code: ...
0
votes
0answers
18 views

Is there a way to tell if a shorcode's handler is being run before or after the content formatting filter?

Apparently (based on what I observe) WordPress runs every shortcode handler twice for every time that shortcode appears --- once, preliminarily, before the output is processed (and the output of the ...
0
votes
0answers
18 views

how to create page using add_menu_page?

how to create a new page in the administration menu, which will include (appearance -> header) and (Settings -> General) on one page?
1
vote
2answers
98 views

How to remove duplicate sub-menu name for top level menu items in a plugin?

I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would ...
1
vote
1answer
56 views

WP Post Template - Templates in own folder

I am using the plugin: WP Post Template which allows me to use templates for custom post types. At present the plugin watches the theme root directory for pages with: <?php /** * WP Post ...
0
votes
0answers
12 views

Add tabs after Wordpress Media Manager 3.5 has already loaded

Does anybody know if it is possible to add tabs on the left-hand side of the media manager after the manager has already been loaded in Javascript. Is there a way to make an ajax call back to reload ...
0
votes
0answers
11 views

Add line in database on url

I'm asking because I don't want to reinvent the wheel. I need to have a URL, where a new row is added to the database, when people scan a QR code with their mobile phones. (ie. ...
2
votes
1answer
249 views

When can you get current page ID and initialize hooks right after?

I'm developing a plugin and need to know on what page user is and then add specific hooks and filters for that page. And my problem is that is_page() and the_ID() doesn't work outside of wp, ...