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

Do I require the use of nonce?

Im creating a visit/page views counter with ajax,jquery and php, I have been reading a few articles that recommend the use of nonces for data manipulation through ajax, however i am not sure if i need ...
0
votes
0answers
124 views

Wordpress plugin tables become corrupt

I have written a plugin that creates and uses 3 database tables. On rare occasion, all 3 database tables become corrupt but no other tables in the database exhibit similar conditions. It is pretty ...
0
votes
0answers
115 views

How do I store a custom dataset in WordPress to best take advantage of API?

I'm required by my GIS Master's program to create an online portfolio of my work. As I learn new mapping technologies and software I'd like to share my knowledge through a blog. I've decided to go ...
2
votes
1answer
38 views

Does settings API create settings on run time?

I'm tweaking a plugin and I'd like to have an option value different for each backoffice user. Currently the options are defined using the add_settings_field method that is performed in the ...
0
votes
1answer
530 views

Thickbox in Plugin settings page?

I adding the default wordpress thickbox in the admin page to show some information inside the div. Everything seems ok when i click that link it appear in popup now <a class="thickbox" ...
7
votes
3answers
801 views

How to redirect to settings page once the plugin is activated?

I created the Plugin of my own. Everything seems OK but one thing I want to do in that plugin is redirect to the corresponding plugin settings page when the plugin is activate. For example: ...
0
votes
3answers
196 views

Registering and using actions which return results in a Plugin class

I have a plugin class which contains a function spektrix_list_events() class SpektrixPlugin { public function __construct(){ add_action( 'init', array ( $this, 'init' )); } ...
0
votes
0answers
468 views

How to call a new php page inside a plugin page?

I have a custom plugin that is accessible via WordPress sidebar, this is the option page of my plugin. How do I called a new page inside my option plugin page? <li><a href="<?php echo ...
3
votes
1answer
566 views

Create page when plugin is activated

I've made so that everytime my plugin is activated it's supposed to create a page. Although i want it to only create the page if it doesn't exist from before. But what it's doing is that it's creating ...
1
vote
1answer
511 views

Load plugin selectively for pages or posts, etc

It's possible select which plugin load by page or post, because i have 35 plugins and many of these no necessary in many pages or posts and only for some pages, how can do this? I've tested beta ...
1
vote
1answer
795 views

How to sanitize user input?

What is the correct way sanitizing form data before submitting to the database? I have the following text input: <form method="post" action="options.php"> <?php ...
1
vote
1answer
58 views

How to implement filesystem cache in Wordpress

I'm currently using the Transients API to cache some product details from Amazon. Now I'm looking into adding a file system cache. But I have no idea how to implement it. The only thing that I can ...
0
votes
1answer
294 views

Custom Stylesheet instead of Inline CSS for Wordpress Customizer API Overrides

I've looked at Wordpress Customizer API and it looks to be able to achieve what I'm looking for; allowing the developer to set aside as many dynamic styles which can later be configured by the ...
0
votes
1answer
43 views

Wordpress rewrite question

I am new here and have a question about URLs in WordPress. The very front-facing portion of my website uses WordPress just so I can use the CMSs and blog for my SEO. I have a real estate portion of ...
0
votes
2answers
531 views

Load page template with custom content using a plugin

I want to load the page.php template with the content I specify (using variables and not from the database) if the request contains a particular query string. So lets say a user requests ...
-1
votes
1answer
35 views

Wordpress Customise

I'm looking for a plugin that lets me put a "please wait" message (similar to notebook-driver.com where you're redirected to download link after a few seconds) when people click on certain links. For ...
0
votes
1answer
576 views

Select Form Element Not Saving from Plugin Options

I am certain it is something silly. But I can't find it and with such simple code at a loss for anything else. Having looked at many other plugins doing settings in a lot of ways can't really see ...
0
votes
2answers
3k views

jquery & ajax sending data to php

In my jquery script I have; jQuery.ajax( ajaxurl, { action: 'lu_ajax', status: 'enabled' }, success: function (a) { alert(a) } In my file.php ...
3
votes
0answers
153 views

Bridge Wordpress Media API with custom tinyMCE plugin [closed]

In my tinyMCE plugin, I would like to be able to call the Wordpress Media manager introduced in WP 3.5. I am currently working on a plugin that needs to fetch images from the library. I know we can ...
0
votes
1answer
141 views

First plugin, problem with get_pages

This is my first plugin from more or less scratch and I think I almost got it working, but not quite there yet. The point of the plugin is to get all the child pages, display their thumbnail, title, ...
0
votes
2answers
185 views

How to change url's in Wordpress when changing domain [duplicate]

Is there any plugin that can update the wordpress database, specifically the wp_posts table or any other custom table in the database created by other plugins which has absolute url's of images and ...
0
votes
1answer
3k views

How to use radio buttons in WordPress plugin options using register settings?

How do I get this to save the radio buttons? It saves the checkboxes but I've tried a lot of methods and can't get it to save the radial buttons. Any help will be appreciated. Working Plugin ...
0
votes
0answers
33 views

Multiple Users Logged In Causing Incorrect Account Returned

I have a plugin that I have written that has a front-end login and I have had reports by multiple users that state that when they login (presumably at the same time???), they see someone else's ...
0
votes
1answer
137 views

Plugin Options not saving options and doesn't work

So I've been making a plugin for wordpress that adds a custom post type for products, which was fairly simple and i made that work. Afterwards I wanted to make a settings page sub menu to the custom ...
0
votes
1answer
39 views

my own SVN for a plugin/theme

If I develop a theme or plugin and don't submit it to the wordpress plugin repository is it possible to have my own SVN to roll out updates? How is this done?
1
vote
0answers
58 views

How to analyze wordpress plugin performance

Is there any plugin that I can use to determine the performance of the plugin that I'm writing? I'm currently checking out the following plugins to determine any problems that might cause low ...
0
votes
1answer
61 views

why the wp_register_script doesn't work for register_activation_hook

I want to register a script when my plugin is activated. So I wrote: register_activation_hook(__FILE__, 'register_script'); function register_script(){ ...
0
votes
1answer
210 views

Using Nonce for my Form

Essentially I need to verify my data using a nonce, but I'm not sure that I'm doing it right. What I'm trying to do is remove a menu option for a user that isn't an admin. If a checkbox is checked and ...
-1
votes
1answer
32 views

how can I insert a link on login page

I want to insert a link in login page in between the Login button and the password field, Is it possible ? if possible which action i need to hook ?
5
votes
2answers
292 views

What is the difference between using global $current_screen and get_current_screen()?

I have been looking at get_current_screen();. I have seen there is also a global $current_screen; that I could use. Here are two examples: // Using function function wpse_post_notice() { ...
2
votes
1answer
63 views

Generating User(s) with Settings API

I am trying to create a plugin that will generate users. I am pretty new to Wordpress and my PHP is ehhhh. The idea for it is for the plugin to generate multiple users when its finished. Right now ...
0
votes
1answer
312 views

The “Child Pages Shortcode” plugin, block template

So I have decided on using the Child Pages Shortcode plugin, a plugin that pulls the ID, tittle, thumbnail, excerpt, etc of the child pages. The plugins author explains that he encourages ...
0
votes
1answer
74 views

Wordpress automatic plugin update

I am developing plugin. Currently my plugin has 1.0 version. If in future I will update my plugins with new version 1.1 , so how can user get message like below image How to compare current version ...
0
votes
1answer
58 views

My widget won't update its values when save is clicked

So this is my first attempt a creating a widget that has a functionality of creating a simple image rollover effect (if anyone wants it when it's done, leave me a message). Now I downloaded a sample ...
1
vote
1answer
341 views

Why doesn't flush_rewrite_rules run on plugin activation?

I'm trying to flush rewrite rules in a plugin and it isn't working. I have to go to permalinks -> save in the admin panel for the rewrites to flush. Can anyone see why? class SpektrixPlugin { public ...
0
votes
0answers
54 views

WordPress Menu Targeting

Okay so I'm building out a plugin that generates a list from the $menu and possibly $submenu. I want to loop through that array and generate that list by the menu_slug, but I cannot seem to figure out ...
1
vote
2answers
84 views

Optimising a big Wordpress site

I'm looking at optimising a rather large site I've been adding to and adding to. The database has become pretty big (maybe 100,000 posts) and it has started slowing down somewhat and giving me "Mysql ...
1
vote
1answer
200 views

How to run a function on plugin's options page?

I am writing a plugin that syncs data from a third party service to custom post types in wordpress via HTTP/SOAP. There will be the option to run it on an interval (using wP_cron functions) but I also ...
0
votes
1answer
394 views

Thickbox doesn't respect dimensions when used in admin [duplicate]

I'm writing an admin plugin which produces a pop up to give the user a preview of content. I tried to use thickbox as suggested here - http://codex.wordpress.org/ThickBox but it does not respect ...
3
votes
2answers
612 views

Best practices for using the transients API

I've recently come across the Transients API in Wordpress in hopes of improving the performance of the plugin that I'm trying to write. Basically the plugin is storing product details from the amazon ...
0
votes
1answer
412 views

Plugin admin list pages as submenu

I am creating a plugin for a custom admin menu based in the admin area. My wordpress template is consisted of 5 pages with different templates and some custom variables that the end user would be ...
1
vote
1answer
244 views

template_include filter does not render the custom template

I created a plugin that will render a shortcode that is entered to a page. This Shortcode shall override the theme's page template and use the one that I included on the plugin Here's my code: ...
0
votes
1answer
113 views

How can my plugin display a populated new post window

I've written a plugin that creates a feed reader like google reader in wordpress. Currently I let folks reblog feed items by using the built in WP PressThis plugin url. I pass in parameters and WP ...
0
votes
1answer
4k views

What is the difference between $post_id and get_the_ID()?

What is the difference between $post_id and get_the_ID()? I could not find any documentation on $post_id.
0
votes
1answer
37 views

How to know what are the style sheets are available in wordpess?

I just like to use jquery-ui Style Sheet but i don't know whether it's pre-installed in WordPress or not b'coz without knowing that i think it will create a problem. what in case it is available in ...
0
votes
1answer
888 views

is user logged in not working

I am creating a plugin and wish to check if the user is logged in the run another function. This is my first ever plugin and i am still learning how to program at the same time. following I have a ...
1
vote
1answer
38 views

How to use is_multisite() in a must-use-plugin?

I want this code to be executed in a plugin in the mu-plugins folder. When executing in functions.php everything works fine, but when I try it as a plugin in mu-plugins this creates a blank page. if ...
7
votes
1answer
542 views

How to create a flexible abstraction for WP_Query?

My question is about php but it involves wordpress as i am creating a plugin. The case is that i have 5 questions, each question have 6 choices and one choice to choose from each. Now the person would ...
0
votes
1answer
111 views

How to localize data array in plugin's option page

So i am localizing data saved in an array for my plugin's options, however the data is only localized in the front end, how can I localize data in the plugin's option page as well? The following is ...
0
votes
1answer
108 views

Displaying $_FILES data (simlar to $_POST)

I'm trying to display $_FILES in wp-admin, and I've been using add_filter and apply_filter, but it does not seem to show the $_FILES array values. My goal is to show the values in $_FILES so I can ...