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
0answers
18 views

Registration Form - Activation Email

Good Day Everyone, As some of you know, I'm building a new User Registration plugin. I am trying to create an Activation email with an Activation page for new users, but I cannot find anywhere on ...
0
votes
0answers
25 views

How can I map a specific URL pattern to a plugin for processing

I want to send traffic of a specific URL pattern to be processed by my plugin. Based on that pattern, I will pull some custom post type information from WP, gather external info via JSON, aggregate ...
0
votes
0answers
24 views

add image and url to plugin form

I want to create a plugin which contains a form with Fields: Image, Title, URL and Description of the Ad which the user is posting to my website. I have created a classified website and now I want to ...
0
votes
1answer
52 views

Shortcode display outside the div

I have created a shortcode that retrives and displays a form.The content of the attribute in HTML. function check_my_login( $atts) { return '<form action="" name="" method="post" ...
0
votes
0answers
21 views

how to create new posts , edit_post , delete post and get articals from other site by using JSON API plugin in wordpress.?

I am developing an application to publish articles in Wordpress via JSON API, I need to take a picture with send the create new_post,edit_post and delete_post how can I do this with json api plugin in ...
0
votes
1answer
20 views

Information on plugin adding text when a post, page, or other such is displayed

I need to know what API a plugin would need to use to add text or HTML to the beginning or end of a posts's text when the post is displayed. I have searched on Google - but none of the leads I find ...
1
vote
1answer
83 views

How do I resolve Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1145

I've looked at previous examples of this problem but I can't find a solution for what is causing this notice based on what I've seen from other people. This appears at the top of the screen when I am ...
0
votes
1answer
10 views

Undefined notice on unset field

Still trying to figure my way around Wordpress plugin development, how can I resolve this undefined error? This appears when I add a new post, it can't find the post so I'm trying to figure out how to ...
0
votes
1answer
25 views

configuration of .htaccess for add_rewrite_rule to make sense

I am trying this code from codex wordpress site function custom_rewrite_basic() { add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top'); } add_action('init', ...
0
votes
1answer
19 views

Export Posts with specific custom fields by sql

My development site has posts with custom fields. Meanwhile my live site has more posts added while I'm working on my development site. Now I want to export posts with specific custom fields from live ...
-2
votes
0answers
19 views

Featured image upload option not working properly?

I'm trying to make a new plugin. I hope it's maxim complete. but now I face a problem. When install my custom plugin then the Featured image upload option not working properly. It's show like a media ...
0
votes
0answers
30 views

Using get_template_part() to modify single.php for a custom post type

I have a custom post type plugin called shows that has custom meta such as host, time, length, etc. I want to make it theme independent and require minimum coding for it to work across a lot of ...
2
votes
1answer
35 views

how to redirect to another post without getting headers already sent error?

Normally the code below works for my purpose. I need to check if a post is in a certain category, check against user role and only allow user to see the page if the roles match function ...
0
votes
0answers
34 views

Calculate with custom checkout field in Woocommerce

I'd like to calculate the shipping fee based on a custom created checkout field. I'm using the update_totals_on_change class to recalculate the shipping fee when change this value. // Action to ...
0
votes
2answers
108 views

Registration form Plugin… Email confirmation

Good Day Everyone, I am trying my New User Registration form Plugin on a live site, but the emails are not being sent. I save the new user using: if (empty($errors)) { $myplugin_newuser ...
0
votes
1answer
27 views

Plugin working on my local installation but Cannot be activated online

Good Day Everyone, I want to test my Plugin online on my real website but I don't know why, the following line would give an error, when on my local installation everything works perfectly. (I tried ...
0
votes
0answers
20 views

Add custom functionality on WooCommerce complete button

I've a situation to add some data to the database tables on order status completed button. I can see the url in class-wc-admin-post-types.php Can someone help me for any hook? Or how the ...
0
votes
1answer
28 views

zip unzip attachments in wordpress

my client using easy digital download plugin for sell their photos. They upload a zip file that contain many photos and sell this zip file. My need is to extract this zip file and display the images ...
0
votes
1answer
27 views

Issue on Getting Images URL of the Post Gallery

I am trying to get the URL of the attached galley into the post on custom page layout called Gallery Page. I tried to use the code from Codex at This Page (get post gallery images). but I am not ...
0
votes
0answers
8 views

How can I add page-level settings to a widget?

I've authored a widget that has settings on the widget page, and works correctly. I would like to add the ability to set an override for the widget's settings on a specific page or post. I'm imagining ...
0
votes
0answers
25 views

add_settings_field() inside loop

Hey I'm trying to add textareas dynamically - so there's no fixed amount of textareas which are added. I tried it with anonymous functions inside a loop, but I just can't get it to work. Here's my ...
0
votes
0answers
35 views

Generating a URL with no content for captcha

I modified my regular form to ajax form. I have captcha simple_php_captcha in my form which is generating captcha. I need to chage it's image if the user request it to change. I am thinking to ...
0
votes
1answer
53 views

ajaxurl not defined on front end

I am trying to create a ajaxform on the front side. I am using the code jQuery.ajax( { type: "post", dataType: "json", url: ajaxurl, data: ...
0
votes
0answers
33 views

Set Class Static Variables Before init

I want user to set three static vars before init then call register_post_type using these variables. The issue is the static variables passed empty from prepeare_post function .. I don't know what ...
0
votes
1answer
38 views

Can I access Wordpress API's from within plugin scripts?

I'm developing a WP plugin. In my plugin I have a file that processes form data. For example, user will enter shortcode: [poll-form] And it will output a form with the action attribute set to the ...
0
votes
0answers
13 views

Displaying multiple custom post types in single post type at admin section

I want to display different custom posts types in single post in admin section. how i can accomplish this. I have 3 posts which are Events, Members and Guests. I want to display these 3 posts like ...
0
votes
0answers
15 views

Plugin development - show saved shortcodes in admin panel/page

I created a shortcode plugin and now I am creating an admin page for the plugin. What I would like to do is that, when you hit the submit button in the admin page after choosing all the attributes to ...
0
votes
0answers
23 views

Theming Custom Plugin Page

I am creating a plugin that collects user information. It's a bunch of forms. So, the user will hit the first form page, enter data, then be redirected to the second form page, where they enter more ...
1
vote
0answers
36 views

Adding a metabox on a CPT's submenu page

I have a custom post type registered and a submenu page for some admin actions for the CPT. This page has some items listed in a WP table. I want to add a meta box just below those items. This is ...
0
votes
1answer
53 views

allow user to select pages from dropdown in my plugin

I have a plugin and a part in it allows user to select the page plugin works on by specifying the id of the page. But I want that he should be able to select the page from the pages available in the ...
7
votes
2answers
181 views

Is it mandatory to use $wpdb->prefix in custom tables

Sorry if this question is trivial. I'm just beginning to develop plugins in WordPress. In all the tutorials I found this: while creating the custom tables, $wpdb->prefix is used. Example: ...
0
votes
0answers
18 views

Wp_parse_args not taking the value set from $default

I am learning about creating widgets and am a bit confused on wp_parse_args as it's supposed to merge together an array of arguments per the codex definition. I have $defaults set specifically with a ...
0
votes
1answer
34 views

Wordpress ajax not working in registration

guys. I've tried to build a wordpress simple registration form with ajax, but it doesn't work at all. Here is my code, a php and jQuery ajax. Please tell me what's wrong with my code. FYI, (1) the ...
1
vote
1answer
24 views

Add media and attach images to pages

I have this problem with attaching images and add media. ADD MEDIA Go to page Click on "Add media" Insert an image Image shows in editor, but when I go to the page and do the below code it doesn't ...
0
votes
0answers
10 views

alter $post variable in main query as soon as possible [duplicate]

I'm using WP with WooCommerce. For some purpose, I want to load a predefined static page (e.g. with id=5) whenever the user enters a product page (e.g. www.mysite.com/?product=my-product), by ...
0
votes
1answer
35 views

Custom plugin to get related posts by category

I'm learning how to create custom plugins for Wordpress, I am trying to get related posts by category. The problem is, I am returning all posts regardless of it's category whether it's the same ...
0
votes
0answers
46 views

pre_get_post alter current post id

For some purpose, we want to apply a change to the Wordpress flow that affect's WooCommerce product page being displayed. When a product page is displayed (e.g. www.mysite.com/?product=my-product), ...
0
votes
1answer
13 views

User interface of upload and gallery in frontend?

Is there any user-friendly plugin for users to upload and view files as a gallery? I'd like to try some plugins with these functions, and maybe I can try to develop as the same thing.
0
votes
0answers
36 views

Is there a way to make is_search() always return false

I am making a plugin that display related posts when users put the wrong URL... Samples are like this http://diskonblog.net/gandaria/hellow I do not want to change the theme at all. However, for ...
0
votes
0answers
24 views

Why I am getting an alert box on updating an custom post type?

Whenever I click on Update button I always get an alert box displaying "This page is asking you to confirm that you want to leave - data you have entered may not be saved." I just want to remove this. ...
-1
votes
1answer
46 views

how to insert content into wp_head after loop_end

I'm trying to access the info on a post, so I can get the post title and post content so that I can generate the respective OG tags to put in the header. Problem is that the info is only avaiable ...
0
votes
1answer
34 views

Return Value of load_plugin_textdomain

Good Day, I'm trying to translate my plugin but it doesn't seems to work. I read that I should check the return value of "load_plugin_textdomain" to see if it's false (meaning it doesn't find my ...
0
votes
1answer
9 views

dbDelta not installing database

I'm not sure why this isn't running. When I output dbDelta it says that it created the table, but it doesn't. I think my SQL is valid. Taking everything out between id and UNIQUE KEY results in the ...
1
vote
1answer
63 views

Check for dependent plugin and if false dont activate plugin

I am creating a plugin for WordPress and this plugin depends on another plugin with a specific version. If I enable my plugin without dependent plugin there are fatal error. Is there a way to check ...
0
votes
1answer
23 views

what is the point of telling add_filter how many parameters you want passed to the function?

In wp-includes/plugin.php (apply_filters) there's this: foreach( (array) current($wp_filter[$tag]) as $the_ ) if ( !is_null($the_['function']) ){ $args[1] = $value; ...
0
votes
2answers
27 views

How can I set a dynamic value for post_updated_messages based on return value of post_updated?

I'm familiar with how to set custom messages for post updates using the post_updated_messages action hook. This question is slightly different. I have a function/action hook on post_updated: ...
0
votes
0answers
18 views

Remove wpautop from plugin editor

I have a plugin that uses visual WP editor, and I need to prevent it from adding <p> tags in content. So looking at remove_filter('the_content', 'wp_autop'); I've tried using this ...
1
vote
2answers
37 views

How to check active theme is parent or child wordpress

I am working on a plugin in plugin. I make template folder and in template folder and there are files of plugin that shows my post type data. First Scenario When user activate my plugin the template ...
0
votes
0answers
32 views

Overriding a Child Theme Override with a Plugin (WooCommerce)

I have an interesting issue with a WooCommerce build I'm working. Here's how it's set up: WooCommerce Install Set up a WooCommerce folder in our theme folder to make customizations (so as to not ...
0
votes
0answers
47 views

how to clear cache of checkout details for guest in woocommerce after certain time of inactiveness

In wooocommerce a guest shopping items (before loggin) and after that that person goes to checkout page. Now I've create checkout form in such a way that after selecting country from the dropdown it ...