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

Placement of Code in Plugin for hooking `save_post`

I ran into a strange Problem today developing a new Plugin. I set it up as usual, creating the f711-roomprice folder in the Plugindirectory, and creating the f711-roomprice.php as well as an inc ...
2
votes
0answers
78 views

Save HTML formatted data to wordpress post meta using add_post_meta()

Array ( [post] => Array ( [jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
1
vote
0answers
69 views

Getting wp.me shortlink for wordpress custom post type

There is a button called "get shortlink" for wordpress builtin post type & pages. If we click on it we can get wp.me shortend url for that particular post This can also be got using the function ...
1
vote
1answer
173 views

Edit Yoast SEO breadcrumbs output

I want to customise the output of Yoast SEO breadcrumbs, I have this so far which works great: add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 ); function ...
1
vote
1answer
52 views

I would like to use create a function in my custom plugin to tell WP to use a different header

I am well aware of the use of child themes for this. I know about get_header($name). I already understand the use of conditional tags. I want my plugin to remove the function: function get_header( ...
4
votes
1answer
65 views

How do you create an archive for a custom post type from a plugin?

So I'm creating a plugin to create buildings that list condos for sale. The simplest way to do this was to just create a custom post type for the buildings and then the listings but I'm now stuck on ...
0
votes
1answer
50 views

Can Not Redirect from Plugin-Registered Admin Page

I am doing the following in my plugin: Register a custom admin page and in the callback function (the last parameter of add_submenu_page) Redirect to another page However, when I open the custom ...
0
votes
1answer
34 views

Get Core Functionality from Within a (Secondary) Plugin File

I have a plugin with the following structure: myplugin.php includes/authentication.php I can access core WordPress functionality inside myplugin.php fine, but when I try to access stuff such as ...
1
vote
1answer
47 views

Adding Second Plugin Author

Background: I have a few plugins in the WordPress directory and have recently made the decision to team up with another individual to grow one plugin faster. I'm planning on adding him as a plugin ...
0
votes
1answer
357 views

Woocommerce custom emails without header and footer

I'm working on Wordpress / WooCommerce extension plugin to enable Password Reset on the main site (not wp-admin). I want to use standard WooCommerce mailer and email template to send Password Reset ...
0
votes
1answer
41 views

Can't remove menu items added by plugin

I am trying to remove menu items from the backend but for some reason I can't remove specific menu items added by plugins. For example, I can use this line to remove the plugins page and it works just ...
0
votes
2answers
33 views

Remove .htaccess portion upon plugin deactivation?

I have a plugin that inserts some rewrite rule in the .htaccess file. However, upon deactivating it, doesn't remove said rule. The rule is nested in # BEGIN My plugin and # END My plugin. I want to ...
0
votes
1answer
89 views

WordPress Page Reload Takes forever during theme development

OK, I'm hacking my way through my first theme (while reading Prof. WP Design & Development 2nd Ed.) and .... EVERY TIME I change -for example- a p tag or a div tag or a css rule, when I then go ...
0
votes
1answer
63 views

register_activation_hook() not activate plugin

I am writing a plugin that on the activation must create a new table in database. To do this i am using: register_activation_hook( __FILE__, 'createTable' ); When i run the activation, my plugin ...
1
vote
0answers
80 views

Post added via wp_insert_post with category doesn't show in category listing

I've created a plugin that auto creates a post and attaches a category to it, which is then hidden from the main blog and only shows in the category listing... I can successfully add a new post via ...
0
votes
1answer
65 views

Cannot stop wpautop from messing up my plug-in output

I have a plug-in that embeds some javascript. I've tried using remove_filter() to stop wpautop in every way recommend and still can't get wordpress to stop wrapping my <script></script> ...
0
votes
1answer
57 views

How do I use duplicate wordpress plugins

I am using Inventory Manager Plugin and it is currently working great. The issue I have is that I need to use the same plugin, but I need to install a fresh version of the plugin while maintaining the ...
0
votes
1answer
39 views

Call current post parameters inside a plugin

I edited the plugin WP User Frontend (for editing posts from frontend) to have two different edit pages for two different post types. Here's the original function which handles the edit_link. ...
0
votes
1answer
192 views

wp_get_post_terms Order by not working

wp_get_post_terms Order by not working My code is here query_posts(array('post_type' => 'product','post__in' => $product_ids,)); while (have_posts()) : the_post(); global $post; $args = ...
1
vote
1answer
34 views

How to display a message about updates in the plugin list

I am trying to use the hook in_plugin_update_message in order to display a one line message below the name of my plugin in the admin plugin list section. However, the function called in the hook does ...
2
votes
1answer
52 views

How do I set the link in the Custom Post Type admin menu?

I'm trying to create a custom button and link it to a file within the plugin. How do I get this link pointing to the path of my choice? I've tried the following but it does now work. function ...
0
votes
0answers
94 views

Retrieving $_POST variables on WordPress [closed]

How do you retrieve a $_POST in inside the options page? I'm currently trying to save some $_POST variables I got from the options page, and save it inside my custom table for the WordPress plugin. ...
0
votes
1answer
57 views

How to get post meta in functions?

I set an email button in functions php. The email is sent when clicking on a front-end update post button. The problem is: the email is sent but I can't get the post title to appear in the post. I ...
0
votes
2answers
56 views

How to update the language used by wordpress from a plugin

I'm trying to create a plugin that will be able to translate language used in wordpress. Here's my current code: add_action('plugins_loaded', function(){ load_plugin_textdomain('ecom', false, ...
0
votes
1answer
49 views

Enqueue ONLY Plugin Styles and Scripts

Is there a way to enqueue only plugin styles and scripts without wp_head? I have a plugin I'm working on which overrides the page template, but I still want to include all other plugins without ...
1
vote
2answers
156 views

Adding custom code into header.php using a plugin

I have a bunch of code that I tend to put into the header.php of every site I do which are specific to Internet Explorer. I was wondering if there was a way to insert code into a 'standard' ...
6
votes
1answer
580 views

Is there any plugin development framework

Since I am new to wordpress plugin development I have been examining internal structure of many plugin's and I could find most of them doesnt fit any pattern and understanding how they works is pretty ...
13
votes
1answer
255 views

Is it possible to reuse wp.media.editor Modal for dialogs other than media

To expand: I'd like to utilize the same Modal code/appearance ( as used in wp.media.Modal, wp.media.FocusManager ) to open a modal of my own custom dialog, not the Media Editor. In the past, I've ...
1
vote
1answer
42 views

Advice on plugin structure

I'm looking for a bit of advice on structuring the classes within a plugin I'm writing for my charity website. At the moment the plugin is OOP based with a single class. However, its becoming quite ...
-1
votes
1answer
216 views

woocommerce features to add product along with link

I have used woocommerce plugin for this site. Now you can see in the home page all the products are placed. At the top section there is one category named as All Products. In that category you can see ...
1
vote
1answer
92 views

Processing shortcodes in groups (separated by line breaks)?

The Project I'm working on a plugin to resize and embed rows of images using shortcodes that will be converted into <img> tags. In most cases there will be multiple images per row, and the ...
0
votes
0answers
38 views

Having a Hard Time Getting Selected to Work [closed]

I am currently building a plugin that contains a select box (unique). The select box value is being saved, but I can't get selected to work, it doesn't output anything. The select box is built from ...
0
votes
2answers
1k views

Custom user profile, registration, login page with theme

WordPress user profile page uses the administration interface, and its user registration / login page is not part of the theme. I would like to change it into the custom theme of my site customize ...
0
votes
3answers
58 views

Plugin's total number of users

Sorry if this has been asked before, but I couldn't find any reference to this here. Looking at a plugin's stats on the WordPress site, you can see a percentage of versions of your plugin being used. ...
0
votes
1answer
78 views

filter the_content, custom post type, and wp_query

I thought this was going to be quick and easy, but naturally it's turning out to be more complicated. I'm writing a simple plugin that creates a custom post type "Ad", and then puts a random ad at ...
0
votes
1answer
167 views

How to edit wp-signup.php content using plugin

Hello experts, I nead your help as I got some issue with wp-signup.php page which i try to resolve but i am not able to do it. Issue is as follows, I want to replace the text 'Get your own ...
0
votes
2answers
42 views

Update wordpress Core Remotely

Im doing a project that needs to update the wordpress blog remotely like: updating wordpress core updating plugins and updating themes any help would be appreciated thanks!
0
votes
3answers
116 views

Multiple Parameters for a Shortcode

I am working on building some shortcodes for my blog. I can set a single parameter for my shortcode, but not sure how to set different parameter. For example, I can use [myshortcode myvalue] to ...
-1
votes
1answer
147 views

HTML in WooCommerce settings

I need to append default text block to each product description (same text for each and every product) in WooCommerce. So I've created simple plugin which adds new settings field as rich text editor ...
2
votes
1answer
309 views

WP Query group/order by category name

I have a requirement for displaying a list of custom post types grouped by category, but in addition to this, each custom post is linked with a meta value (in this example lets say we have a custom ...
1
vote
2answers
227 views

How can I save repeatable fields with one value inside an array?

Introduce I am currently working on a slider plugin to learn a lot of PHP and WordPress. I have create some repeatable field with javascript. Some functional details: When the user is clicking on ...
4
votes
1answer
121 views

Nav Menu meta failing to import

I'm the author of the Nav Menu Roles plugin that lets you display/hide menu items based on the user's role. It has come to my attention that the menu item meta does not import when using the regular ...
2
votes
2answers
71 views

How to override a function call in functions.php?

In functions.php of a theme makes a call to show_admin_bar(false) which hides admin bar in front end: if (!is_admin()) { wp_deregister_style( 'bp-admin-bar' ); if ( function_exists( ...
0
votes
3answers
125 views

Custom rewrite rules for /pastissues/%category%-%postname%.html

I have been researching this for over a week now. I've tried a few tutorials on custom rewrite rules and custom post types, but I'm still not sure which direction I should go in for making this ...
0
votes
2answers
40 views

Plugin is creating posts twice

I have code which takes some $_POST data and loops through it. In the loop, I store the $_POST data in variables and create a new post using those variables. The loop ends when I run out of $_POST ...
0
votes
1answer
33 views

How can I add the custom taxonomy categories to the posts and pages?

I'm trying to build new wordpress plugin. Additional to the default wordpress categories box in the publishing screen of posts and pages, I want to add another box for custom taxonomy categories , How ...
3
votes
1answer
159 views

Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions

I need add a rewrite rule in my plugin, and distribute it with my code. All works fine if I put the rule in the .htaccess in the WordPress root folder, but I need distribute the plugin with my rule. ...
2
votes
1answer
40 views

Where to put archive-{post-type}.php

I have a plugin that adds a custom post type for a website I'm building. I am using the_content filters to change how a singular page looks, and it works great, allowing me to keep everything ...
2
votes
1answer
87 views

publish_post plugin hook doesn't always pass $post->post_content

I've written a simple plugin that grabs the contents of a post, as the post is published, and sends them to an external site for archiving. This generally works but when dealing with posts that ...
0
votes
1answer
61 views

Is it possible to remove next-post / previous-post with out creating a custom template?

I'm creating a plugin that uses a custom post type. I do not want to make a custom template for viewing the posts and discovered I can add a filter for the_content to include my custom fields, this ...

1 3 4 5 6 7 31