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)

2
votes
1answer
16 views

What user roles should have wp_unique_post_slug_is_bad_flat_slug filter applied?

I have a plugin where I need to reserve some slugs so I am using the filters wp_unique_post_slug_is_bad_flat_slug and wp_unique_post_slug_is_bad_hierarchical_slug. I apply them like this on my plugin ...
0
votes
0answers
16 views

Display admin notice on category creation

I'm trying to display a custom admin notice when admin creates new category but can't make it work. My code so far is: function pippin_admin_notice() { echo '<div class="updated"><p>...
0
votes
1answer
30 views

How put the correct URL to sub-menu plugin?

I'm trying to build my first plugin and building my plugin menu like this: function group_panel(){ include('html/example.html'); echo "<h1>{$_POST['data']}"; } function ...
0
votes
0answers
19 views

Plugin - overwritting entire non-pluggable function

In order to achieve what I want to do with my plugin I need to modify several functions inside comment.php and comment-template.php ( for instance some code lines like if ( is_user_logged_in() ) : ) ...
-4
votes
1answer
27 views

user can login from single account detail from multiple locations(computer) at the same time [closed]

I want user can login to an account from multiple computer at the same time, i want concurrent login in word-press. is there any plug-in or custom code for concurrent login ?.
0
votes
1answer
18 views

Why does unzip_file always return true but nothing happens?

I am trying to use the $wp_filesystem of WordPress to unzip a file located inside the wp-content/plugins and place it at the same location. However whatever I try the WordPress method unzip_file() ...
0
votes
2answers
47 views

How to connect my wordpress plugin to a remote database securely?

First of all I do not have a lot of experience with wordpress plugins, but I am developing a plugin which has to connect and send data to a remote database ( which it is already doing ). But at this ...
1
vote
1answer
28 views

No posts found - Custom Post Type show_ui

I am fairly new to Wordpress (but been on the PHP circuit for a minute) and developing a plugin. I have created a custom post type with the following: function create_post_type() { $result = ...
-3
votes
1answer
53 views

Embed php code in custom field of a plugin [closed]

I am using this plugin https://wordpress.org/plugins/emailcoauthoronpost/ in my website. This plugin shoots an email to the author of the post with a link to my website. But I need to send the ...
0
votes
2answers
44 views

Using ob_start() in plugin

I'm learning how to build a WordPress plugin. In the sample plugin code, I have this PHP/HTML: ob_start(); // other plugin code <?php function plugin_rvce_options_page() { ?> <div> ...
1
vote
1answer
42 views

Using Checkboxes on Plugin Options Page for Custom Plugin

I am creating my first WordPress plugin. It is a simple plugin that extends Visual Composer allowing you to remove the element options in VC (shown in the screenshot). On the plugin "options" page ...
0
votes
1answer
17 views

How to overwrite iris color pallates from theme to plugin

I am working n plugin for iris color pick and in plugin I want to make my own color pallets and overwritten on iris color picker that use in theme. I create 6 fields in plugin where user can put ...
0
votes
0answers
36 views

How to include JavaScript script only on specific page [duplicate]

I am creating my own widget. I need to use custom css and js files. I have used wp_register_style`wp_enqueue_styleandwp_register_script\wp_enqueue_script` functions in order to register custom styles ...
0
votes
1answer
68 views

Why user is added back in database after deletion?

I am creating a custom plugin, the users for the plugin are saved in a separate table and there is a table that display all users having edit and delete links. while delete link is clicked, the user ...
0
votes
1answer
23 views

How to get all posts belongs to a user between a certain date

I am writing a plugin for my company so I need to get all posts belongs to a user between a certain date which is given by another user. Then I want to count words for each post and finally add them ...
0
votes
0answers
39 views

Does get_post(); need parameter?

so i'm trying to find out if get_post(); needs a parameter. I'm looking up a page by the slug and this method works but i feel like it is wrong. function my_function(){ $page_id = ...
1
vote
1answer
41 views

Add version query tag to all images

I want caching all images on my site and prevent the browser download the images all times, so I would like add an version query tag to all images (for example: ?v=20160505) How can I add this for ...
1
vote
1answer
42 views

External Authentication, session_tokens not destroyed on logout

There are many questions and answers on external authentication and some code prior to WordPress 4.0 need some tweaking to get them to work. For example, adding a fourth parameter to the ...
1
vote
1answer
42 views

Suggestions on Approach to New Plugin I'm Stuck On

I'm a newbie plugin developer, and I've had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some ...
0
votes
1answer
16 views

Make a plugin page out of influence of the theme's style

I have to make several change to my style to be with what i want, when i export a project to a wordpress plugins : Based on this : When including it into a plugin, i finally got this : This ...
0
votes
0answers
40 views

Fixing the WP Post Object for Custom Route

I'm currently in the process of building a custom plugin for a client that involves displaying front end user profiles for any "subscribers". These profiles will be populated with various user meta as ...
0
votes
0answers
11 views

Overriding search from plugin

I have some code that I would like to hook into search.php for all themes on a MultiSite network. It would be written to a plugin so when a search query is run given the conditions are met the code ...
-1
votes
1answer
27 views

Best Way to Inventory the Media Library of a 200+ Multisite Installation?

I have a multisite installation of WordPress with 200+ sites. I recently was tasked to do an inventory of each site's media library and was wondering if this could be accomplished programmatically ...
0
votes
1answer
24 views

Multi hook deploiement

Having this : <?php class Planner_plugin{ public function __construct(){ add_shortcode('planner::display', array($this, 'display_planner')); register_activation_hook( ...
-3
votes
1answer
46 views

How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?

I'm developing a payment gateway for Wordpress. I should send the data to a third party and get the confirmation code (and other info) from them. The problem is that they don't return this ...
1
vote
1answer
42 views

Editable form for WordPress plugin options page

For my new plugin Scripts and Tags Manager I want to add the possibility for the users to edit rows and add / remove rows. Each row is a form element that contains a text field for the dynamic ...
0
votes
1answer
25 views

After plugin activation hook

Does it OK, to send email (to me) after user activate my plugin? Does it a right way to do that (https://developer.wordpress.org/plugins/the-basics/activation-deactivation-hooks/) with hook? thanks
2
votes
1answer
37 views

Override plugin localization

Is it possible to override the localization files provided (or not provided) by a 3rd party plugin? A plugin that I'm using now doesn't have any language files but I want to avoid having a future ...
0
votes
0answers
32 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( $wpdb->get_var('...
1
vote
3answers
49 views

Add code inside specific wordpress standard function

Is it possible to add a piece of code snippets inside wordpress standard function ? In my case I am developing a plugin that will trace the exact location of the caller of wp_delete_attachment method ...
0
votes
0answers
8 views

Saving option values in array using register_settings and add_settings_field [duplicate]

I've been able to save different options as single options in the database. What I'm trying to do is to save them all in one single row, using an array. This is my code: register_setting( 'cptrp-...
0
votes
0answers
28 views

Tracing which wordpress php script executes specific actions

Is there any way to trace which php script in wordpress executes a specific actions ? In my case I want to trace which php file in wordpress whether a plugin script , theme script or standard ...
0
votes
0answers
34 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
1
vote
1answer
43 views

Plugin Options Not Saving to Database in WP 4.5

WordPress 4.5 broke my plugin and there are no obvious clues why in the change log The plugin controls the visibility of menu items. Users select one or more countries and whether to show or hide the ...
0
votes
0answers
21 views

Passing Numbers & Letters in Query Strings

I have been fumbling around with this for 45 minutes now, and can't seem to get anything working 100% as I need it to. I am developing a plugin to allow multiple query strings (1 for "level" and 1 ...
0
votes
1answer
63 views

Foreach in get_post_types to apply a different filter per post type

I have a class in my plugin with the following function: protected function get_post_types($output='names') { if (! is_array($post_types = get_post_types(array( 'show_ui' => true ), $output))) ...
0
votes
0answers
11 views

Option tree wordpress options plugin not save key values

I use this plugin for save values for my theme , actually in localhost in my server works fine , but when i install in production server not works The problem it´s with the keys , if i build a key ...
0
votes
1answer
24 views

Option page's form doesn't work

I have two option pages: General Options > MyOptionPage1 and CustomPostType > MyOptionPage2 Both have a form, but the after clicking Save in second option page I land in the 404 page. Here is ...
0
votes
1answer
38 views

Calling a save function from a “submit” button

I am trying to call a function to save changes from a submit button, but I am not accustomed to PHP programming, as I have just started. I tried Googling around a bit, but didn't find anything too ...
0
votes
0answers
16 views

Access submenu without giving access to menu page

I have created a custom post type 'book' and added few submenu's to it, which are also custom post types eg (novel, science, history etc.). I added seperate capabilities to all of the custom post ...
0
votes
2answers
36 views

Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?

This is my first go at making my own shortcode. What I am trying to do I have 11 different outputs for star ratings I want to be able to use in posts. I want to wrap it all into one shortcode, and ...
1
vote
1answer
39 views

Verify if user is wordpress logged in from another app since wordpress 4.0

I try to implement in my Node.js app a way to verify if the user cookie is valid. I've found some post in internet who explain me very well the things, but as i try to implement it, with the WordPress-...
0
votes
2answers
39 views

Is it save to use eval for a jQuery callback method coming from the database?

I'll be brief and hope I can explain my scenario correctly. Here's my scenario. The jQuery slider plugin has an anonymous callback method. I would like to give the Admin the ability to create a ...
0
votes
2answers
14 views

Change plugin name on WordPres repo

Months ago i have created a simple WordPress plugin that shows Latest post with thumbnails, but as the plugin name includes the word "Ads" it has been a report from a user that the plguin assets are ...
0
votes
1answer
12 views

Get images / media attached to a page by page ID

I have a series of pages which have images included on them by means of the HTML editor in the admin area. I need to access these while NOT on the the actual page in question, i.e, I need to access ...
1
vote
2answers
35 views

wp_enqueue_script + wp_enqueue_style Since When

wp_enqueue_script + wp_enqueue_style: these 2 are recent inventions in wordpress are they are from many years. I purchase a course from udemy his authors hasn't used these functions. His videos look ...
0
votes
1answer
40 views

Does a blank plugin come with any overhead?

I dont really like big plugins like jetpack. I find it much easier to manage multiple plugins with a single piece of major functionality rather than 1 plugin that does everything and use an options ...
2
votes
0answers
86 views

How to modify the new WordPress 4.5 link inline toolbar

I had my own plugin that add custom links options to the old wordpress link edition window (data attribute, nofollow etc). The new inline link toolbar introduced in WordPress 4.5 is ... not what I ...