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
2answers
40 views

Re-writing MySQl query for execute faster

Can any one re-write this SQL query to perform better? At present this query takes about 29 seconds to execute in BlueHost server while it takes 6 seconds in HostGator.com server. My intention is ...
0
votes
1answer
42 views

add_theme_support using a plugin

I want to create a theme specific plugin for the opern-sourced Bootstrap Genesis theme where I can use the add_theme_support function to add or remove several mini plugins or theme modules/features ...
0
votes
0answers
24 views

How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data

How we have to manage the creation / deletion of custom post types and taxonomies in a plugin? For example i write a plugin that creates a new custom post type and an associated custom taxonomy. ...
0
votes
1answer
21 views

Simple Search Plugin Does Not Perform Search

Created a very simple plugin to display a custom search form. No errors, but not performing search. I may be over my head and leaving out one or many requirements. My plugin code: /** * Begin ...
0
votes
0answers
18 views

Merge Codes using redux framework

I am trying to use the redux frame work for my options panel in a theme i have seen some theme optiosn supply a mail merge style button to include fields to be inserted into text area Ie I want to ...
0
votes
1answer
13 views

Referencing files in JavaScript in WordPress Plugin

I have a JavaScript file in my plugin in which I need to reference a sound file to play when any link is clicked in any front end page. I did it like this: my_plugin/my_plugin.php function ...
0
votes
0answers
18 views

Filtering custom posts

I have to add functionality to my wordpress site that displays some custom posts. However I need to filter the output based on multiple categories/taxonomies (I dont know whether to use ...
0
votes
1answer
27 views

How programatically cause uploads folder to be created?

My plugin uses the uploads folder to store some files for configuration (as that folder is writable on all installs and I've had issues with Wordpress deleting files elsewhere on some installations). ...
0
votes
3answers
437 views

create web service for android app using wordpress website

I have to create Web services for android app using WordPress Database. where user can login and register using android app. that record will be saved in WordPress database. display All the posts of ...
0
votes
0answers
35 views

How to block a script from loading based on the source

For a plugin I am developing for a company that is active in both Europe and Asia I am trying to block certain plugins and scripts from loading for visitors that are located in China. I have been ...
0
votes
1answer
91 views

Update Data parameter of a wp_localize_script() call

I'm working on a child theme, In my-page-template.php I have : //... $current_key= 5; //calculated result wp_localize_script('my_js', 'ajaxload', array('post_id' => $current_key)); In my_js.js ...
0
votes
0answers
17 views

Protect my plugins document ready JS from errors from other plugins

I'm creating a plugin where I add some event listeners etc. Nothing fancy. I'm using the document ready event and it's working fine. The only problem is, that other plugins may cause JS errors into ...
0
votes
1answer
67 views

Add placeholder into contact form 7 recaptcha text field

I want to add "Placeholder" into contact form 7 really-simple-recaptcha plugin text field. I tried $('field_id).attr("Placeholder" "My Placeholder Text") using jQuery. Is there another method to do ...
0
votes
1answer
74 views

Woocommerce custom Plugin in wordpress [closed]

I want to access the ID of the product currently being displayed on the page. I am trying to do this in a separate custom plugin. I have tried global $post and global $product and get_the_ID() methods ...
0
votes
1answer
27 views

is pre_get_comments not working?

I am following through the "Professional Wordpress Plugin Development" book from WROX and I wanted to use this piece of code I found in it (I switched pre_get_posts with pre_get_comments) for my ...
0
votes
0answers
23 views

How do I control the list of Pages an author can see?

Using one of the role managers,I enabled Authors to edit/create Pages). The edit/create pages screen shows a tree of all the pages in the system. Is there a way for (beside going into the core) To ...
1
vote
0answers
56 views

Making a custom widget that includes a tinymce and works in Site Origin Page Builder

For a client I'm using Site Origins Page Builder plugin. It enables the client to make rich layouts for each page by dragging and dropping widgets. Site Origin widgets that require a WYSIWYG-editor ...
0
votes
2answers
101 views

Delay JavaScript files from loading

I need to delay AngularJS scripts from running so I can set up my application first. I need to initialize the application with ng-app="app". I want to add that attribute to the < body > < body ...
0
votes
1answer
45 views

How to Customize Polylang Language Items

I am using Polylang plugin with WordPress 4.3.1, Can you please let me know if there is a way to display language items in short abbriviation like En for English or CH for Chinese I am using this ...
0
votes
0answers
31 views

Form submissions not posting to database / displaying in dashboard

In the process of building a simple contact form plugin. For some reason - the data from the form submission is not being posted to the database /and or displaying in the WordPress dashboard. If ...
0
votes
0answers
37 views

Access Action Hook from Child Class in External Plugin Class

I am attempting to access an action hook that is declared in a plugin's child class. The plugin uses a singleton instantiation pattern: class WC_Freshdesk { protected static $instance = null; ...
3
votes
2answers
207 views

Problems after wp_set_password() containing an apostrophe

So we are using a couple of custom things in our WP and one of them is a PW-Recovery form. Using this internally we're setting the password with wp_set_password($password, $userId) Lately we ...
0
votes
0answers
24 views

Add info to plugin list view on WP admin

I'm writing a plugin, and want to add some custom info to the plugin list view on the wordpress backend. Like, here: [] Is there an action or a hook I can use, I tried searching for it but couldn't ...
0
votes
0answers
28 views

How to generate Short URL for my documents in Wordpress

Scenario I have a custom table with documents. This table have other fields but couple of them only relevant to my question are ID, and PATH. Majority of documents stored are PDF files and ...
0
votes
2answers
20 views

Check filter defined or not?

Is this possible to find out whether add_filter( 'allow_major_auto_core_updates', '__return_true', 1 ); already added or not in some other plugin? or can i check this automatic updates set for ...
0
votes
1answer
37 views

wordpress automatic update does not run

Hey Im creating automatic update plugin for wordpress and i have added following code using add_action('init' add_filter( 'allow_major_auto_core_updates', '__return_true', 1 ); add_filter( ...
0
votes
1answer
28 views

A more elegant way to handle notices/warnings

I have a wordpress site with a number of different plugins (about 75) all created by me, old and new included. With the evolution of WP and PHP/MySQL, some of the functions in the plugins have ...
0
votes
0answers
21 views

Do you see any problems (mainly security-related) with how I've used wp_ajax_* actions?

I am writing a Wordpress plugin that will allow logged in users to manage a specific resources via WP admin interface. These resources should then be made available to an Android app, but only users ...
0
votes
0answers
49 views

Social Sharing Buttons in WordPress Popular Posts

I need to insert something rather custom into the WPP Plugin. I need to insert this code, or manually coded social sharing buttons for FB and Twitter, underneath the post title: echo do_shortcode( ...
0
votes
0answers
34 views

Fetch all menus, categories with their ID, links, and order using MySQL query

I need to fetch all menus, categories with their ID, links, and order using MySQL query. I am able to get menus, type, ID, and order, but why am I not able to get the links that they are pointing to? ...
0
votes
2answers
72 views

Adding a custom post type taxonomy template in plugin

I've created a custom post type named "accommodation" and taxonomy for it named "categories" using the file "taxonomy-accommodation-categories.php" - this is working fine in my WordPress theme. But I ...
0
votes
1answer
42 views

How to create a Wordpress Plugin that has it's own “page”?

I'm learning plugin development and need to create a plugin to display data from a database. I want this plugin to have several separate pages (not insert content into the home page, etc.). Alost like ...
3
votes
1answer
83 views

How to call “page specific menu items” in template

I have installed a plugin for giving custom command for menu to display on each Page Specific Menu Items, now I need to display these menus on theme header. Can I use anything like wp_nav_menu(). ...
0
votes
0answers
24 views

Overwrite a theme's add_image_size from my custom plugin?

I have develop a little plugin which also uploads images in a specific folder. But i notice one image got saved 3 more times, all other image size. I found the theme is using add_image_size. So how ...
0
votes
0answers
48 views

How Can the_post Be Hooked Like the_content and the_excerpt?

My plugin currently hooks properly with the_content and the_excerpt, but when I try to hook the_post, I get the error "Catchable fatal error: Object of class WP_Post could not be converted to ...
0
votes
1answer
31 views

To remove rendering of menus and header, plugin or theme?

I need to create a view of my website which does not render the header (where I see my user name) and maybe display just one menu on the side. Do I achieve this through a plugin or through creating a ...
0
votes
1answer
177 views

UWooCommerce - add cart discount programmatically?

I need to develop a plugin that applies a discount to the cart if x number of products have been purchased. Could someone point me in the direction of the code/API I need to use. Can find nothing ...
0
votes
0answers
28 views

Changing post status with js

I'm having issues grabbing some actions inside a navigation menu.. So it's going like this(for the publish button) HTML <a href="javascript:updatepost()" class="menu-item fa ...
0
votes
0answers
20 views

get_results no result back

I can't get a result back from this query...any suggestion? function per_match(){ global $wpdb; $myrows = $wpdb->get_results( "SELECT id FROM partite;"); foreach ($myrows as $myrow) { ...
1
vote
1answer
130 views

Actions that Run on Admin Edit Page Load After Posts Are Queried

What actions run on the edit page in the admin section of a post type? i.e. xyz.com/wp-admin/edit.php or xyz.com/wp-admin/edit.php?post_type=shop_order (custom post type) I need to run a function ...
0
votes
1answer
44 views

Update Plugin Without Overwriting Custom Settings

My plugin uses the code below that has uid="x" in it that requires the user to edit the plugin and set "x" to their user id, such as uid="420971". Whenever I release an update to the plugin and the ...
0
votes
1answer
56 views

get_post_types doesn't work in plugin

The dilemma is that get_post_types() inside the plugin I am creating. And from researching now all post types are not registered until "wp_loaded". However, "wp_loaded" is executed when all plugins ...
0
votes
1answer
199 views

how to handle the loop using filling bootstrap grid structure?

i make a code that can fill bootstrap grid structure i used while and for loop in my code but the issue is for loop repeat its value in 2nd row the above picture tells you column 2 and 3 of first ...
0
votes
0answers
127 views

How to get post content by get_posts function?

I'm newbie at Wordpress and now I need to get the post content in events plugin. I have simple array: $event = get_posts(array( 'name' => $events_array[$i], 'post_type' => ...
0
votes
0answers
30 views

$wpdb global causing issues with plugin class

I am currently building a plugin. I have a main init.php file which loads all the necessary plugin classes. Within one of the classes, I have several methods that call the $wpdb global. One of the ...
0
votes
0answers
24 views

Custom Page Templates for a complex application - code must sit in a plugin and not the Theme

I am developing a custom set of applications which sit on top of a WordPress site. The theme is developed by a third party, and I have decided it is time to remove the custom page templates from the ...
1
vote
1answer
362 views

Error : “Cannot use object of type WP_Post as array in”

Fatal error: Cannot use object of type WP_Post as array in C:\xampp\htdocs\wordpress-4.3.1\wp-includes\query.php on line 3716 I don't know what is this I am searching from internet but not find ...
-2
votes
1answer
45 views

how many rupee or dollar charge to client to make theme [closed]

I have a client they saying, make theme for me, i will sell it in the online market, i agreed to make wordpress theme with plugin integration but i dont know how many amount to charge for theme, ...
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. ...