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

creating pages from plugin

I am writing up the plugin for purpose of reserving a workspace. So far, I have written the login script and registration script. It can be found here. I am directly printing the page content on the ...
0
votes
2answers
24 views

Plugin as custom page

I'm begginer in wordpress (but not begginer in PHP) and I would like to make custom search page as plugin with this url www.example.tld/book-search. It would be simple page for searching books from ...
0
votes
1answer
14 views

Merge custom plugins in one folder

I've made some plugins to print some text with php from the database. I use them in pages via shortcodes. If I put all the code in only one folder, so just one plugin, only one shortcode works,the one ...
1
vote
1answer
19 views

Wordpress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?

Looks like the best way is using: add_action('wp_footer', returnJs); But if my returnJs function is inside my shortcode function and it's used more than once on a page it will return an error trying ...
0
votes
1answer
22 views

Plugin screenshots taken old [on hold]

In readme before latest release they where named as: BlaBlaBla BlaBlaBla Files also named in same pattern: screenshot-01.png, screenshot-02.png After latest release only ...
-1
votes
0answers
19 views

Is there a way to remove the wrapping anchor tag when outputting the_author filter?

I am trying to implement a custom plugin that will allow customized output of a post's author (including name, institution, and description). It outputs rich HTML, and the problem I am having is not ...
0
votes
1answer
20 views

get_pages Drop down list for selection of a page

I am currently developing a plugin inside the admin page and I need to have a drop down list, listing all the pages. I need to be able to select one page and save the "ID" as an option. I am currently ...
-1
votes
0answers
10 views

Customise categories image by woocommerce [on hold]

I have used this plugin Categories Image Advantage of this plugin insert image by external url that what i need for wooCommerce categories image. But i want to replace this image with wooCommerce by ...
2
votes
0answers
22 views

Wordpress scheduled task is called but not executed

I created a plugin with a cron to update all posts of a certain type every 5 minutes. I installed WP Crontrol to check if the cron is registered correctly and everything seems to be okay. This is how ...
0
votes
0answers
12 views

Editing dashboard according to the userrole

I'm relatively new to PHP, I'm editing a plugin that restrict demo users with the role of (subscriber) from some capabilities, and it modifies the dashboard for the demo user(subscriber) and remove ...
0
votes
0answers
10 views

wp_get_referer function always returning false

I am trying to use wp_get_referer function along with "template_redirect" hook in wordpress like this function show_page_name() { $r = wp_get_referer(); var_dump($r); die(); } add_action ...
1
vote
1answer
15 views

How to prevent Composer dependency conflicts amongst WP plugins?

In our plugin development we use Composer to install e.g. Symfony\Process that we later use in the code. The big question is how do we make sure that this dependency is not in a conflict with some ...
0
votes
1answer
18 views

Refresh or redirect page after activate my plugin

I'm quite newbie in PHP and plugin development, and I think I'm missing something obvious but I dont know how to do it. When I activate my plugin (it adds some menu items), everything it's ok except ...
0
votes
0answers
12 views

Removing trailing slash from add_rewrite_rule custom page

I'm currently working on a plugin to add a new page to display data from a custom database table. All is going well so far but when I access the new URLs they are 301 redirected to the same url with ...
0
votes
0answers
9 views

How can my plugin act Network Activated without actually being activated network?

My primary goal is to be able to update my plugins as part of the WP Updater class, but the network aspect is giving me a headache and many wasted hours I will never get back. Does anyone know how to ...
1
vote
0answers
25 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
0
votes
2answers
107 views
+100

Why is 'register_activation_hook' undefined?

I am just getting reaquainted with writing plugins, after writing a whole two about three years ago. Following some example code I found: if(!class_exists('QuizMaster_Plugin_Template')) { class ...
0
votes
1answer
22 views

variable created in page.php is null inside of header.php

Ok, so i'm instantiating a class in page.php. Then i'm calling get_header() to include header.php now in header.php i need to access this class object and execute one of its methods but i get this ...
1
vote
1answer
36 views

Having Problem On Getting WP Post Gallery Images URL

I need to get the URL (actual Size) of all images of gallery associated with a post in single.php. The following code from Codex returns all images in very small size 150x150 which is not suitable for ...
0
votes
0answers
10 views

Issue on Getting WP Gallery Items In cpt-single.php As Attachments

Having a "Custom Post Type" called Projects I am trying to get actual URL of images added into Post Gallery and list them in class other than WordPress built in .gallery. This is the code which I ...
-2
votes
0answers
27 views

Taking site's full control

I'm going to write a complex plugin for WP, and I'm trying to understand what is the best way for the plug-in to take full site's control. User can choose to use the plugin features coupled with ...
0
votes
0answers
20 views

Using an iframe/plugin outside wordpress

I have Wordpress installed on my website, which I normally edit in dreamweaver. I use a few plugins in wordpress that are extremely useful; normally these generate their own page and I either use an ...
3
votes
1answer
73 views

register_taxonomy with multiple object type and update_count_callback

The register_taxonomy accept array as the object type so I can link as many custom post types to a custom taxonomy. That is fine. The issue is, the default taxonomy count is always zero with the ...
0
votes
2answers
29 views

How to create an embedded code for wordpress shortcode?

What I have done I have a developed a custom WordPress plugin for displaying a custom calculator on my website. And regarding the same I have created a short-code for it which I am using to place it ...
0
votes
0answers
10 views

Usage analytic for my plugin [duplicate]

I'm about to release my WP plugin and would like to track the usage of it. I would like to get detailed usage (per url) such as: how may users clicked the plugin widget. I looked at google analytics ...
0
votes
1answer
33 views

post_parent in custom post type

I've two custom post types, type1 and type2 My current workflow of creating contents, from the user perspective a user created posts of type1, i.e. post1, post2, post3 on a particular day our ...
0
votes
0answers
25 views

How can I intercept the login script?

I want to write a plugin which will intercept the user's login, show a "second login" page (for two-factor authentication) and then redirect to standard login+a hook for my two-factor authentication ...
0
votes
3answers
40 views

Add action to fire when a published post is updated

I have a couple of actions setup: add_action('publish_post', array($this, 'newPost'), 10, 2); add_action('post_updated', array($this, 'updatePost'), 10, 3); When I update an already published post ...
0
votes
0answers
23 views

WordPress “New User Approve” plugin approval email

Is there a way to add a email address to CC on the approval email(i.e. the email that is sent to the user letting them know that we approved their user account) without going in and changing PHP code. ...
5
votes
2answers
254 views

Should I create a theme or a plugin?

I'm working on a pro bono project to try to learn WordPress. I've been provided with a rough design (see screenshot below) and I'm struggling trying to think of how to approach the issue. My main ...
0
votes
1answer
31 views

Can a plugin add to header/footer/body content?

I am just wrapping up my first WordPress plugin and the last thing I would like to do is take a piece of data that the plugin knows about (from wp_options table) and display it in either the header or ...
1
vote
0answers
21 views

Handling results from data hooked into admin_post

I'm writing a plugin that uses a form to pass some data through to itself. Is there any way to do this "The WordPress Way"? Sample form code (on a custom submenu page added under "Tools"): <form ...
0
votes
0answers
8 views

Security of using uploaded file across two admin submits

I'm writing a plugin that merges two files, based on user input about which file to draw each section from. This means that I have to get the user upload and display it before I can get the user input ...
1
vote
1answer
39 views

Call wp_generate_password() from within a Class

I have a function to add wp users. There is a $password = wp_generate_password(); in it. This works. Now I'm creating a class XenWord_Add_WP_User based on the function. In fact, I copied the ...
0
votes
0answers
11 views

Register a plugin within another plugin as a new post type

I have developed a plugin now i want to integrate my plugin with another plugin, is it possible for me to register my plugin within another plugin by using that plugin's post type.
1
vote
1answer
18 views

Standard location for plugin to save/cache files?

Are there official guidelines on where a plugin should cache files? If not, is there a best-practice out there that I can follow? For example, a plugin grabs content from a back-end system ...
0
votes
0answers
25 views

New Wordpress plugin - authentication is needed

I write a new plugin that will work against an external application. This application need an access to this plugin, and will create, edit and delete posts. Of course I want to protect the plugin so ...
2
votes
2answers
46 views

Editor access to plugin settings

I'm trying to give access to an user with the role Editor to this plugin settings page: https://wordpress.org/plugins/commenter-data/ In the code of this plugin on line 31 of commenter.php there is ...
1
vote
1answer
62 views

Plugin development, hooks, generate content

I'm building my first plugin. This plugin will activate a theme, set up a default front page, register tax. / cpt, and create some content. (cpt = custom post types) I made it work all this in ...
0
votes
0answers
11 views

Custom table loop with pagination link issue

I have a custom table in WordPress and trying to listing records with Pagination. With below code, I able to create pagination but only problem is when I click on page 2 than all links will stay on ...
0
votes
1answer
29 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
29 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 ...
1
vote
1answer
52 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
22 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
33 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
16 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
20 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 ...
0
votes
0answers
11 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
1answer
30 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
36 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 ...