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

Should I make a plugin or modify the default theme? [duplicate]

My project is this: to modify an existing plugin to add payment functionality that is not currently available for download as a separate plugin. So I need to code it all myself. I've begun this ...
0
votes
1answer
67 views

Display custom post type archive on page.php template

I want to display the custom post type archive of my plugin inside a normal page template. My approach was: function my_include_template($template) { global $post; if ( ...
0
votes
1answer
14 views

Exclude specifed files from plugin editor

I just wonder is any chance to exclude custom plugin files from Wordpress plugin editor. I don't want give access to couple files from my plugin form wp-admin users. I try to use tips from link ...
0
votes
0answers
10 views

How to validate user subscription with paypal?

I have created a custom role for my wp site, i also created a custom user register form for this role, i want to charge an amount before the user can finally subscribe. Is this possible, i'm doing ...
0
votes
1answer
19 views

widget: input the px value from user and use it as inline style in widget function

I am trying to dynamically add margin-bottom property to my widget. For example, I am inputting the value "50px" from my widget and want to use this value to adjust margin-bottom property for the ...
0
votes
1answer
37 views

Enqueue script not working

This is my code to enqueue scripts. The later one with title yourscript2 is working, but the first one with title upload is not working: add_action( 'wp_enqueue_scripts', 'add_my_script' ); function ...
0
votes
0answers
22 views

How to pass variables to attributes to variations, of a Woocomerce variable product?

I am developing a plugin to make a API available. In this effort i am trying to Adapt woocomerce functionality to my plugin. I have a function that it is supposed to create a variation and fill the ...
0
votes
0answers
35 views

Plugin options page - form with two different submit buttons

In my plugin options page I have two buttons, netted way down looks like this - a single form, with two submit buttons. <form action="options.php" method="post"> <input id="submit_button" ...
0
votes
1answer
55 views

WP Cron as Fast as WordPress AJAX?

I have a question about performing a very long and resource intensive task within WordPress. Here is the scenario. I have a plugin that allows users to run a task that takes a very long time and ...
0
votes
0answers
15 views

How to limit each front-end user to view just his own uploaded files on Amazon S3?

In my Wordpress website Users can upload video files directly to a Amazon S3 bucket, all of them use the SAME bucket for their uploads. After the upload is done each user should be able to view/delete ...
0
votes
1answer
63 views

PHP calling function within a class

I'm writing my own php class and I have multiple functions within the class. Something like this: class JSON_API_Hello_Controller { public function test_cat(){ global $json_api; ...
0
votes
1answer
57 views

How to use Amazon Elastic Transcoder from Wordpress using AWS SDK for PHP?

Use Case: The user uploads his video from the frontend of my website in any format he wants to Amazon S3. Now I want to covenrt that video file to MPEG-4 using Amazon Elastic Transcoder by applying ...
0
votes
1answer
43 views

Need to change buddypress profile url by add_rewrite_rule

I have some problem with wordpress/ buddypress url rewrite So i have a url like localhost/site/members/admin/jobs/it-job-create/ but need to make it localhost/site/members/admin/jobs/it-job/create/ ...
0
votes
1answer
30 views

Woo-commerce: Adding additional page sections using a child theme

I'm hoping to modify Woo-commerce by adding a section to every product page. I have a child theme setup with a copy of the Woo-commerce template files in it. I want the new section to appear under the ...
0
votes
2answers
27 views

WP: adding Javascript to specific woo commerce pages

I'm developing an eCommerce site using Woo-Commerce, i'm hoping to introduce some JavaScript to my sale pages only, in the name of a finance slider. What is the best way to go about including a ...
0
votes
0answers
26 views

metabox inside custom post

i'm trying this to add metaboxes inside custom post but never show the metabox Function Reference/add meta box « WordPress Codex Example: But never show this inside custom type post, Only inside ...
0
votes
1answer
17 views

Plugin creation, restricting access to specific roles

I'm creating my first, fairly simple WP plugin. I'm struggling to get my head around permissions and access. How can I restrict access of the plugin to Administrators only? Is there a simple way I ...
0
votes
1answer
29 views

INCOMING: Wall of code for form and $_POST, not updating custom field's value

its been a long two days in an attempt program a plugin from scratch to provide a front end landing page with 2 forms. Depending on which form the user wants to use, the form shall change a value in ...
0
votes
0answers
31 views

Error extending widget class defined in another plugin

I am trying to extend a widget class from another (widget) class in a 3rd party plugin - so hierarchy like this: 3rd_Party_Widget extends WP_Widget (in 3rd party plugin) My_Widget extends ...
0
votes
0answers
23 views

Wordpress Custom JQuery Trigger no working on plugin

Experienced web developer here but have never worked with Wordpress. I am having a problem with custom JQuery code. I am trying to trigger an event when a change of selection occurs on a select form ...
0
votes
0answers
10 views

Sending data to table

I am creating a plugin which asks users to enter their department, position and resume. I need to upload this data to a WordPress table. I am reading Codex but unable to understand how to send data to ...
0
votes
0answers
31 views

WP custom plugin: Handling form actions

I'm attempting to create a form which calls a php file on post action, when the action is called I get a page not found however. The form is shown below: <form action="uploader.php" method="post" ...
0
votes
0answers
33 views

Export User Info into CSV - Additional Column (post_title)

I'm using the 'Export Users to CSV' a plugin for wordpress. By default, The plugin only extracts wp_users and wp_usermeta I have been wanting to add post_title column from wp_posts. I was able to ...
0
votes
1answer
51 views

Grandchildtheme (plugin) add header.php (not exist in child theme)

I'm writing a plugin and I need to replace some files of the used theme. For example I'd like to add the header.php file because this file is in grandparent theme and not in child theme. I replaced ...
0
votes
0answers
44 views

Problem with creating order in schedule event (woocommerce, wordpress)

I have created a schedule event in wordpress. The coce inside it is below (wordpress + woocommerce), $order = wc_create_order( $args = array() ); update_post_meta( $order->id, '_customer_user', ...
0
votes
0answers
27 views

Plugin dev: How to multiply instances of a plugin in the same metabox?

I have a picture uploader that fits inside a metabox in the administration. I would like to have four instances of this uploader in the same metabox in order for the administrator to manage 4 ...
0
votes
1answer
24 views

What do “and” means infront of a variable? [closed]

When we use & in argument in function it means if we change the variable inside that function the variable will be not be changed outside. <?php function add_10(&$number) { $number ...
0
votes
0answers
9 views

Add Flatr button to Sharing option

I know adding a Flatr button to the sharing option is possible on wordpress.com and I wondered if there is a way to do so on a self hosted wordpress ? If not, do I have to create my own plugin or is ...
0
votes
1answer
39 views

get_users() not returning all users in site

I'm fairly new to wordpress/php development, so forgive me if this is a stupid question. I'm trying to get a list of all the users with metadata in order to export them to a CSV file. We currently ...
0
votes
0answers
31 views

add_order_item from custom endpoint

Im useing WP>Woocommerce->Woocommerce subscriptions I have created a custom endpoint: /edit-subscription/. You can see exactly what i did in the last comment here: ...
0
votes
0answers
12 views

Posting from WP admin to another WP blog

I have 10 WP websites. One of them, or it can be any of them, but for simplicity , let's say that... one of them have a content (custom content type) that I want to post on 2 or 3 from others (the ...
0
votes
0answers
55 views

Call Function sanitize_callback for each times

I want to call function for my each register_setting option, i have more that 24 registered option and i think there is better way to call the sanitize one time than i create each function to handle ...
0
votes
1answer
36 views

How to fix Uninitialized string offset: error on a checkbox in WP Settings API

I am trying to create an options page with a checkbox field. The checkbox is working fine but when I uncheck it and save settings, an error string shows on Notice: Uninitialized string offset: 0 in ...
0
votes
0answers
14 views

Add menu section and items to the Appearance > Menus page

I am writing a plugin that creates some virtual pages according to How do you create a "virtual" page in WordPress. I want to be able to add these virtual pages as options in the Appearance ...
0
votes
0answers
18 views

Acf post object problem

I am creating a job portal website in wordpress i am using acf and custom ui for custom fields i created custom field with post object for custom post type when the job seeker add a application the ...
0
votes
0answers
11 views

Tie specific functions to options-update for limiting API requests

I'm coding an update for my Mollie payment gateway plugin for WordPress (for Easy Digital Downloads). The old plugin only performs one API call to the Payment Gateway, when processing a payment. The ...
0
votes
0answers
25 views

How can I write the following URL in wordpress

I am working on a project, and one of the biggest parameters was that we keep existing data and URL structures intact. the decision was made long before me to switch from an old, crappy codeignitor ...
0
votes
0answers
17 views

Add view in wordpress admin area by plugin

I have a list like this: when click on view then the url open like this: http://103.231.44.154/flightplan/wp-admin/admin.php?page=views&id=112 But the page show: You do not have sufficient ...
0
votes
0answers
15 views

Add code to header from a plugin

Maybe I just don't know the correct language to search for, but I just can't find the answer anywhere. There are plugins out there that you can configure in the Wordpress backend, which add js or html ...
0
votes
1answer
21 views

Change localization only for plugin

I have a wp plugin with the required .pot and .mo localization files. Everything works fine, if I change the wordpress language, the plugin language changes too. But some users has requested if I ...
0
votes
0answers
19 views

Allow network sites but also allow single sites

Ok, I think I really need some help here. I am feeling like this is more complicated then it should be. Here is my aim. If plugin is used on single wordpress site than allow and use the class ...
0
votes
0answers
28 views

Buddypress orderby groupmeta data

So I have been looking everywhere on how to do this. I am working within a custom plugin. I have figured out how to filter results from groups by groupmeta. Though what I seem to be stuck on is being ...
0
votes
1answer
21 views

How to get author developer link on plugin page

When I upload my plugin to Wordpress's repository it currently shows my full name as the author. It doesn't link to my profile though. I've tried changing the author name to my username, but it still ...
0
votes
0answers
64 views

how to load posts with ajax and auto update post link to url in wordpress

hai i am here with a problem in wordpress devlopment. Hope i will find here. The problem is i have to write code in wordpress so that if user click on any post link then the url goes to ...
0
votes
0answers
37 views

Custom Taxonomies in Custom Post Type - slug rewrite is not working

In a plugin, I have created a custom post type 'Movies' and two custom taxonomies 'Genres' and 'Studios'. For the post type, I need the permalink to be 'localhost/movies/movie-name'. So in rewrite ...
0
votes
1answer
40 views

How to set custom homepage via a plugin

I am developing a plugin movie database plugin and i want set few custom templates to wordpress theme using the plugin. how can I achieve this?
0
votes
0answers
91 views

Get and Display Content in wp_editor

I am building a simple plugin where I display a visual editor in the backend. My Code looks like this: $content = ''; $editor_id = 'ssp-editor'; $settings = array('textarea_name' => ...
0
votes
0answers
19 views

wp_schedule_event need to deactivate plugin changing recurrance

I currently developing a plug that has wp_schedule_event , the purpose of wp_schedule_event to my plugin is i want my plugin so send an email depends on recurrance of the wp_schedule_event. I also ...
0
votes
0answers
56 views

Integrating Fullpage.js Plugin with other WordPress plugins: Issues with other plugins displaying on FP template pages?

I'm adding this question from the general stack exchange page here: hope that's alright! I recently followed this post on integrating FullPage.js as a WordPress plugin. I'm having trouble getting ...
0
votes
0answers
25 views

Why isn't my plugin seeing other classes?

I've written some very simple code based off of this tutorial by Harish Chouhan on the Plugins API: /** Add Plugins API if not already existing */ if ( ! function_exists( 'plugins_api' ) ) ...