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

Can't switch theme after activation

I'm creating a plugin (I'm very newbie in this) to load custom taxonomies, custom post types and an automatic activation of a theme, so I have this code: // Custom Post Types and Taxonomies ...
1
vote
1answer
18 views

wp_scheduled_event being removed mysteriously

I have a plugin that sets a scheduled event and runs fine for myself and all users except one. On his server the scheduled event is mysteriously removed somehow after working fine for hours/days. I ...
0
votes
1answer
13 views

Force HTTPS 301 redirect with hook

I am trying to force a 301 https redirect with hooking into the 'template redirect' function. I want not doing it a htaccess because when I update my permalinks, htaccess with https redirect ...
0
votes
0answers
13 views

Global Signup/Login in two wordpress site some like similar to stackoverflow?

I have two different wordpress installation at two different server one at mydomain.com and other at subdomain.mydomain.com having different database. My question is how I implement global ...
0
votes
1answer
21 views

Error when trying to save custom post type settings (ERROR: options page not found)

I know this is a common error but I haven't come across any solutions that have worked. I'm creating a plugin that uses custom post types and I have a settings page under that CPT's menu. The settings ...
0
votes
1answer
8 views

Generate custom RSS from a plugin

Using this tutorial I was able to create basic custom RSS feed. but I'd like to have a custom RSS generated from a plugin, and my Google-Fu failed me on that specific search. Is there any way to ...
0
votes
0answers
12 views

Is it good practice to use WordPress nonce values to restrict page access?

I'm working with a colleague on a WordPress plugin. Part of the plugin functionality is showing dynamic lists with links which allow you to open a new page. Depending on the user's role, they may or ...
-4
votes
0answers
23 views

I want to know the websites url address which activate my plugin, how do? [closed]

I made a plugin, is there a way to get url address of users that activate it?
0
votes
0answers
6 views

Custom table in my plugin print UTF-8 (מוברש) charsets and not hebrew

i have created custom table in wordpress db to use my plugins needs. i have campaigns with hebrew names, this saved to column (varchar(100) utf8_unicode_ci ) in the DB i dont see hebrew but this: ...
0
votes
0answers
17 views

How to translate wordpress backend to another language

Is there any way to translate wordpress entire backend to another language that is not supported yet. ? I mean, my language is Sinhala (Sri Lanka) and sinhala is not yet included by default on ...
4
votes
1answer
26 views

Get specific color from admin color scheme

I know how to print the current color scheme by using: echo get_user_option( 'admin_color', get_current_user_id() ); or echo get_user_meta(get_current_user_id(), 'admin_color', true); but I need ...
0
votes
0answers
14 views

Custom Post type url with category

i created a custom post type for my plugin. They can be categorized but the effect of that is kinda limited. Lets say we have the post type magazinesand the categories print and digital. I now create ...
0
votes
0answers
12 views

Displaying Custom Sidebar Without Modifying Theme's Core File?

Is there a way to display custom sidebar created with a plugin on the wordpress front-end without modifying theme's core file? EDIT: Here is what I currently doing: I hooked the custom dynamic ...
0
votes
1answer
18 views

Certain functions are undefined when called form mu-plugins

I have a correctly formatted php functions file in my mu-plugins/ directory. When trying to use wp_is_mobile() or current_user_can(), I get an undefined function error. Fatal error: Call to undefined ...
1
vote
1answer
18 views

Any hook for pre-plugin-update -either bulk or single plugin update

Any hook is available on before the plugin update action ? i searched in hooks library . What is the exact hook? . Doing some stuff before updating plugin/theme .
1
vote
1answer
32 views

Namespaced action and filter tags

I'm upgrading several of my plugins to use PHP namespaces, so that functions, classes, constants etc are all namespaced correctly. <?php namespace my\plugin; function init() { ... } // ...
0
votes
1answer
32 views

WP_Editor - Saving Value into Plugin Option - Stripping HTML

I have a wp_editor(); on my plugin settings page. I also have enabled the "Font Size" drop down in TinyMCE. After highlighting text in the wp_editor(); and selecting a font size from the editor's ...
1
vote
2answers
63 views

Creating table with plugin is not working

After reading many question and answers and many had asked the same question I have been following the same instruction as the people instructed but my bad it's not working I have used ...
0
votes
1answer
26 views

Plugin Development - Get Admin Url (Including cases where wp-admin is not used)

I'm currently writing a WordPress plugin, and am looking to retrieve the WordPress admin url. It sounds simple enough - and it is - assuming every WordPress install is using the default wp-admin slug; ...
0
votes
1answer
49 views

How to create two custom post types when plugin is activated?

I am developing a plugin for question & answer.For that i need to create custom post types question & answer.How to link that custom post types so that if i display a post from Question the ...
0
votes
1answer
26 views

Get plugin option in another PHP file

I making a plugin, and I registered several options in the plugin PHP file. So let's consider : my-plugin/ - my-plugin.php (options are registered here) - admin.php (the admin page of the ...
0
votes
0answers
32 views

Merging qTranslate-xp and custom-post-widget and disabling multilingual only for pages

This question is about WordPless plugin development/tweaking/modification and as such as far as I can tell should meet the guidelines for posting on this site. My knowledge of WordPress development is ...
0
votes
1answer
30 views

Getting timestamp of activation plugin time

I want to save the time that the user activates a plugin. So I need to set the value within the function that the registration hook fires: function ucme_reg_func () { //------------other ...
0
votes
1answer
21 views

Pass A Value From Outside To A Plugin Variable

Is there a way to pass a custom variable value from outside like from functions.php to a plugin's variable? Lets say that I have the following function defined in a plugin. function plugin_funct(){ ...
0
votes
1answer
22 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
0
votes
0answers
28 views

How to make a plugin theme-wide?

I have written a working plugin and meets the criteria. Although I've encountered an issue, I've noticed that it's only usable on the theme's functions.php that I write the function and specify the ...
0
votes
0answers
28 views

How to avoid hardcoded text in a custom page template?

I'm developing a company Website using Wordpress 4. This website needs some special, customized pages - with forms and GET and POST and a lot of stuff, so a lot of PHP code. Now, a CMS' main purpose ...
0
votes
0answers
11 views

Enqueue script with API_KEY as data attribute [duplicate]

I'm currently trying to create a plugin that connect with an online service who required API_KEY to be passed in the script tag, and I'm searching a way to do it the "Wordpress" way, is it possible ? ...
1
vote
2answers
42 views

Fatal error: Class not found in

I am working on a plugin for 'hooking' an extra payment provider into a checkout system. I have a class gtpCheckoutData in my function.php which calculates the prices. In my plugin I want to use ...
0
votes
0answers
8 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
2
votes
0answers
47 views

add_rewrite_rule, plugin activation and plugin deactivation

I see a lot of example showing to call add_rewrite_rule in your init hook, e.g. function add_my_custom_rewrite() { add_rewrite_rule(... } add_action('init', 'add_my_custom_rewrite'); and in ...
0
votes
1answer
29 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
0
votes
1answer
43 views

shopping cart plugin development

I'm developing a new shopping cart plugin for WordPress. At a point, how to save orders, I am stuck, sort of confused. Actually I am not sure whether I should save order through options api or create ...
0
votes
0answers
17 views

Allow users to label or classify or group posts accoring to their own criteria

Is it possible to allow individual users to group posts according to their own personal classifications. Say one user wanted to class groups by read and unread ... or 'to read' or 'shared' etc. ...
0
votes
2answers
28 views

Adding Dropbox dropin js using wp_enqueue_script

I want to add a new Dropbox Drop In Chooser button to my site. To include the code in a simple page you use <script type = "text/javascript" src = ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
0
votes
0answers
54 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
2answers
40 views

Can a standalone app be made to work as a Wordpress plugin?

I just developed a tool for web site owners. This works as a standalone app with its own user and routes system and other custom elements. Now it seems Wordpress is getting more and more popular and ...
2
votes
1answer
28 views

Avoiding plugin name collisions with WP updater

I have a client who has a WordPress site that uses a custom plugin written for them by another developer. Recently, they ran the WordPress updater and one of the updates clobbered that custom plugin ...
0
votes
0answers
20 views

Execute PHP code of a plugin markup file

I am creating a plugin which imports html markup. I would like to execute some php on those markup files before or after it gets imported. Is there anyway I can do this? Right now if I add PHP to the ...
0
votes
0answers
16 views

Unable to find BP_Group_Extention

When I try to extend Buddypress' groups, I get false from the function-call class_exists( 'BP_Group_Extension' ). The function is called during my plugin initiation, and I am able to do other ...
0
votes
1answer
20 views

What happens when you create/edit a menu

I need to know this for a plugin I'm developing: What happens when a user creates a menu, add/remove menu items in the admin, what updates are made in the database, what tables/columns are affected?
0
votes
0answers
19 views

How to use in my plugin the Autocomplete for users and sites field?

i am building plugin for my multisite, so i need to be able to select some blog from the blogs list, and then get the blog id to use this id in another function. the best solution will be using ...
0
votes
1answer
30 views

How to hide page links from theme menu

I'm working on a plugin, I programatically create some pages in posts table, the links appear in the theme menu(front end), I don't want some of these page links to appear, how do I do this?
0
votes
1answer
53 views

Get post thumbnail in WP_Query

I wrote an Ajax suggest plugin and I want to get the post thumbnail, but don't know how. This is my plugin code: $s = trim( stripslashes( $_GET['q'] ) ); $query_args = apply_filters( ...
0
votes
0answers
27 views

Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”

i have question, how to hide the "shortcode code" when using the "editor" the same as wordpress do with "gallery"? my clients hate to see shortcodes as "code". And the truth, not only him, but a lot ...
1
vote
1answer
55 views

Is there an action like 'after_register_custom_post_type'?

I'm writing a small plugin for Visual Composer. I need to list all custom post types but I don't know when to call the query to fetch all post types. My plugin gets initialized by after_setup_theme, ...
0
votes
0answers
28 views

How to create team for users?

i trying to create team to manage all the users in more effective way in multisite. i want to create some temas like "support" "super admins" and etc... to each team we need to have option to select ...
0
votes
0answers
20 views

How to manage different admin notices for different blogs?

i am trying to create plugin that can manage different admin notices or any other information for different blogs. for example: i have in my multisite network with 50 blogs. i want to select some ...
1
vote
1answer
25 views

Properly licensing a plugin that uses Apache 2.0 licensed code

Am developing a plugin that I would like to submit to the WordPress.org repo. It's dependent on Apache License 2.0 code, so I know I should license my plugin with GPLv3 - it's allowed. So, how do I ...