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
2
votes
0answers
96 views
Placement of Code in Plugin for hooking `save_post`
I ran into a strange Problem today developing a new Plugin.
I set it up as usual, creating the f711-roomprice folder in the Plugindirectory, and creating the f711-roomprice.php as well as an inc ...
2
votes
0answers
95 views
Multisite plugin development and wp_enqueue_script
I have a plugin I'm developing. It works fine on a single site version of WordPress. It installs on a multisite version of WordPress, it appears to work on the admin pages, but when the plugin ...
2
votes
0answers
105 views
Can I use core's “or Link to Existing Content” feature in my plugin?
When adding a link in the TinyMCE editor, you get a nice search with ajax function that searches your existing content and lets you select from it.
Is it possible/reasonable to re-use this in a ...
2
votes
0answers
60 views
Singular name Plugin localization
I'm trying to localize the singular name of a custom post type.
...
'singular_name' => __('key', 'plugindomain')
...
I created a .po and compiled it as .mo. I also loaded the translation using ...
1
vote
0answers
36 views
Trouble with Transient API when W3TC is activated
I'm using W3 Total Cache 0.9.2.11 on Wordpress 3.5.2. I've got a problem with transient API and w3tc's object cache setting.
When I activate 'object cache' with memcached (other settings are ...
1
vote
0answers
44 views
Why does including a file in theme's functions.php not work?
For example, if I write some code (e.d. add a custom post type or something) in my theme's functions.php, it works fine. If I move it to a new file, then include() the file in my theme's functions.php ...
1
vote
0answers
135 views
How can I save a multiple select array with the settings API for a plug-in options page?
I'm thinking this may be more of a problem with my PHP rather than my use of the settings API, but I can't seem to get Wordpress to save an array of data for a multi-select box.
The multi-select box ...
1
vote
0answers
40 views
Wordpress daily cron is executing more frequently than once a day
I have a wp cron job scheduled based on what's in the options. In this case its schedule daily.
add_action('init', function(){
if( !wp_next_scheduled('product_posting_cron') ){
...
1
vote
0answers
42 views
Wordpress Localization and Templating
I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building.
It's only now that I discovered that the localization doesn't work when I declare my ...
1
vote
0answers
53 views
Unable to delete custom post types, confusion around capabilities
So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types.
You ...
1
vote
0answers
37 views
Any ideas how to make unit test read the theme functions.php?
I have performed a unit testing for a plugin that works perfectly until the section where I need to activate the theme and check if the theme is supplying the right hooks data to the plugin.
Inside ...
1
vote
0answers
25 views
Ordering taxonomies by rank
I'm using a function (copied and modified a bit from this question ) which displays taxonomies in order by rank with » between parent and child and | between terms, but I get a mistake in the html ...
1
vote
0answers
78 views
Remove default admin notification, Settings API
I have added custom error messages while saving WordPress plugin settings using the settings API method add_settings_error.
It is working well, but the default message ("Settings saved.") is also ...
1
vote
0answers
22 views
Unit Testing a Plugin functionality with cron
I'm currently on the process of unit testing a plugin using the Wordpress unit testing framework.
In one of the functions to be tested,it will send mails to users in a periodic time interval so it ...
1
vote
0answers
108 views
Getting wp.me shortlink for wordpress custom post type
There is a button called "get shortlink" for wordpress builtin post type & pages. If we click on it we can get wp.me shortend url for that particular post
This can also be got using the function ...