0
votes
1answer
15 views

Filter the HTML content of plugin

I am using the Marketpress plugin. I want to modify single_order_funct() function HTML content in it. I want to make changes so that, when it is updated, I don't lose them. class PluginClass{ ...
0
votes
0answers
29 views

apply_filters to content but ignore shortcodes

I want to prepare my content added via wp editor so it displays nicely, so I use apply_filters like so: $ld = apply_filters('the_content', $ld); That works fine for the page, but in the backend ...
-1
votes
0answers
20 views

How can I manipulate the HTML of the_content in a specific way?

I know the basics of how to add a filter to modify the_content, but I want to modify the HTML in detail. Specifically, I want to find any <blockquote> elements and add some HTML within them. ...
0
votes
1answer
45 views

Use of apply_filter in plugin/widget class

I'm having difficulties to find out what I'm doing wrong in my use of apply_filter() in a widget class. Here's some samples of my code: class Byad_CountDown_Widget extends WP_Widget { function ...
0
votes
1answer
28 views

change output location of plugin function using a custom hook

I'm running the YouTube Video Fetcher plugin and it fetches youtube videos and displays it on your website. However, instead of displaying the video after the post, I want to hook the code into a ...
0
votes
3answers
36 views

How to list the Hooks and order of execution in current loading page?

I need to know the list of hooks that are called in the current page . How to identify the priority assigned to the action and filters in the action . If i want to remove the default action on ...
1
vote
1answer
50 views

Edit default comments page in WP Admin

I need to make major changes on the way the comments are rendered in backend, from the following file: wp-admin/includes/class-wp-comments-list-table.php I know editing the WP Core files directly is ...
0
votes
1answer
49 views

How to use add_action for multiple instances of the same class

I'm writing a plugin which defines a class that is meant to be called multiple times. The class uses add_action to register it's own methods as callbacks. class MyClass { __construct($foo) { ...
8
votes
2answers
162 views

How do I exclude plugins from getting automatically updated?

There is an opt-in filter that allows all plugins on my site to receive automatic updates: add_filter( 'auto_update_plugin', '__return_true' ); I like this feature, but I don't want all my plugins ...
1
vote
1answer
51 views

Filter or action hook to insert content on admin pages before </body> tag

I am developing an administrator plugin and want to be able to write some HTML content just before the last body tag . This content will initially be hidden then displayed with javascript when a user ...
0
votes
1answer
29 views

Is there a filter for get_post_custom()?

I know there's a filter get_post_content that I can hook into, but that only seems to work with get_post_meta, I need to filter individual values of get_post_custom() by checking if the metadata key ...
0
votes
1answer
29 views

How to Use the Filter “sidebar_login_widget_form_args”

I need to rename some of the labels on the Sidebar Login form using the sidebar_login_widget_form_args" filter; I have been trying few days to do this without any success. I would very much ...
0
votes
2answers
142 views

Reposition Woocommerce Message

I'm trying to reposition the messages in my Woocommerce theme. For example the successfully added to cart message. They appear to automatically be placed at the very top of where the woocommerce ...
0
votes
0answers
19 views

getpost content with all formatting for admin pages

All My post usually uses various plugin based data manipulations (Like visual layout, grouping, plugin css, etc) And now I want to render a post content in my admin page. On using following code: ...
0
votes
0answers
22 views

Filter for modifying image on upload

So I'm working on building a new WordPress plugin for massive PNG compression, and I'm having a hard time finding the right filter to hook in to. I need to access the entire image so that I can open ...
0
votes
0answers
39 views

making a glossary with wordpress

I know that there are glossary plugins in the wordpress repository. This plugins normally searches glossary terms in post content and adds a link to it. But i have not found one, that search and ...
0
votes
0answers
50 views

URL parameters causing 404 on home page, but nowhere else

I am writing a plugin that utilizes URL parameters. For some reason, adding one of these parameters to the home page of my website causes a 404 (http://bleaney.ca/?source=asdf). Adding the parameter ...
0
votes
0answers
30 views

Adding a Filter to Sidbar Login Plugin to Change Login Button Lable

I'm a newbie and I have not been able to find an answer to my question. I have installed the Sidebar Login plugin and I'm trying to change the form labels, specifically,the login button label. I ...
0
votes
0answers
39 views

How do I turn off local pickup for a specific shipping category?

Can anybody provide me with some code that would help? I need to be able to offer flat rate shipping AND local pickup for all product categories apart from 2, which I have assigned to a separate ...
0
votes
2answers
599 views

WooCommerce Variable Product Price - Where is “From” text generated from?

The following code from github will add "- [max price]" to all variable products displayed in product archives. I am wondering how I could also remove the "From" text inside the same filter. ...
0
votes
1answer
116 views

is there a way to pass a parameter to a add_menu_page function?

I am trying to create a dynamic way of adding admin pages and submenus with different capabilities. So the first way i thought of which works BTW but is ugly is having all the pages in 1 folder and ...
0
votes
2answers
443 views

Can't change a label in woocommerce with the normal filter

// Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( ...
0
votes
1answer
178 views

WooCommerce Custom Product Validation

I'm attempting to build a membership system in WordPress that utilizes WooCommerce with Gravity Forms and integrates with SalesForce. Can somebody give me some direction on how to properly utilize ...
1
vote
1answer
39 views

Inserting above the comment template

I want to insert content, just above the comment template.I have tried all the word-press filters and hooks but failed. I want to insert the content above the comment template, I mean above all ...
0
votes
1answer
242 views

Remove a particular State from Woocommerce Checkout List

I am attempting to remove a single state from the woocommerce checkout page. I've found the file in woocommerce core that I can edit to remove the state, but I would prefer to do it through a theme ...
0
votes
1answer
734 views

Customize WooCommerce Error Message

I would like to change the wording of an error message I see in WooCommerce. Are there any filters I can use to do this?
0
votes
1answer
83 views

Very stubborn wp_register_script / add_action vs remove

I am trying to get rid of a plugin's .js file in the but it's not working. It's being called here {partial code): class awqsf{ const post_type = 'awqsf'; function __construct(){ // ...
1
vote
1answer
88 views

Determine plugin name from within plugin_action_links filter

Is there any way to determine what plugin the plugin_action_links filter is addressing when it processes the filter? I'm trying to add some actions for each plugin on the /wp-admin/plugins.php page. ...
0
votes
0answers
127 views

Trying to apply apply_filters to custom post type content - not working

this is kind of a strange request. I have a plugin that adds a custom post type - then the plugin has some settings where the user can select from any of the posts they created (in that custom post ...
0
votes
1answer
53 views

How to hook into action/filter call

I'm about to create a very simple logging plugin. Every time an action or filter is fired I need to log it to the file. The idea is that we will be able to see exactly which actions and filters are ...
0
votes
2answers
440 views

Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]

If I have a store that offers flat rate shipping of $10 and free shipping for orders over $100 and a customer orders over $100 it doesn't make much sense for them to have to see both free shipping and ...
0
votes
1answer
90 views

Which filter affects the 'entry-title' post class

I created a plugin setting a $var to true if the post belongs to category 'a', and set the same $var to false if the post belongs to category 'b', it works and I can get the correct value depends on ...
2
votes
1answer
194 views

WooCommerce product search titles only

I had asked this earlier and solved it using the Relevanssi plugin, however that plugin is now breaking things so I can't use it anymore. How is something so freaking simple made so impossible by ...
0
votes
2answers
74 views

remove_action in plugin file

Im trying to use remove_action( 'admin_notices', 'woothemes_updater_notice' ); In a plugin to keep from editing the themes functions.php file however the code isnt being executed. Do i need to ...
0
votes
1answer
213 views

Strip shortcode from excerpt

I have this challenge, that i've found out that i'm not the only one in the WEB with the same issue, nevertheless, there are no solutions yet. I'm trying to remove shortcodes from my custom post ...
5
votes
1answer
2k views

Changing WooCommerce Display Price Based on User Role & Category

I'm looking to display a different price based on a user role (wholesaler, dealer, etc) AND based on the category. There's a dynamic pricing plugin that displays these discounts once an item is added ...
0
votes
1answer
425 views

Filter custom post types / woocommerce products that are not directly in a category

I am using Woocommerce but I suspect the solution is WP generic. Basically when I display a category WC wants to show products that are not directly in the category but are instead inside a subcat - ...
0
votes
0answers
154 views

Sharing Buttons - url doesn't show up in dialog box

I'm currently applying a theme option I made that enables/disables social media share buttons at the end of post's content. Currently I'm struggling with getting the social media button's dialog ...
0
votes
1answer
28 views

Which filters or actions involve with index page for plugin?

I decide to manipulate index page or all pages except admin page with plugin but I don't know which filters or actions control index page. for example if I want write plugin that shows a link to admin ...
0
votes
0answers
170 views

Filter “Awesome Filterable Portfolio” Plug-In to Display a Specific Category by Default

I am using the "Awesome Filterable Portfolio" Plug-In. You are supposed to put the short code on whatever page you want the portfolio to appear: [af-portfolio] The portfolio does appear with the ...
1
vote
1answer
748 views

How to apply filter at search of woocommerce products?

I want to change woocommerce search. And want to limit the search to Product title and Category and Tag only excluding description and short description. Search Form is in ...
0
votes
1answer
41 views

How can I apply a WP filter on specific plugin version

I have the plugins list in 'wp-admin/plugins.php' page. For each plugin there is some meta info extracted by WP from each plugin file: /*  * Plugin Name: somename  * Version: 1.2.3   */  I want to ...
0
votes
0answers
127 views

Can't update an option when the publish_post action is fired.

I'm using Tom McFarlin's Plugin Boilerplate, and I'm facing this huge problem where I can't update an option when the publish_post action is fired. I have a function that hooks into the publish post ...
2
votes
2answers
3k views

How can I customize the wp_list_categories

I have a list of categories in woo-commerce which I'm trying to customize to be displayed to look like the following image. I created the above image using normal HTML and css however I would like ...
1
vote
1answer
157 views

Removing an action, or dequeueing style - Both not working

What I am wanting to achieve is to remove an action called inside of another action. The action is calling a style, and although I have tried to deregister, and dequeue the style, it is still ...
1
vote
0answers
152 views

Changing image URLs in media library

On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter ...
0
votes
0answers
230 views

custom styling for woocommerce categories

I am using hooks and customizing the template files to use woocommerce. On my products page I want a list of categories along the top like this. I would even settle for a neat list of them where my ...
1
vote
2answers
164 views

How to change the name of the “edit my profile” link in the WordPress admin backend

I am really confused at this point. I can not figure it out how to rename Edit My Profile link in the admin backend. How can that be done?
0
votes
1answer
66 views

How to add different CSS for galleries

I use jetpack carousel for all of my galleries , even for my featured image, my question is, how do I style my [gallery] outcome to use different CSS for the featured image so I can manipulate it a ...
1
vote
1answer
67 views

Creating a plugin to sanitize comment and the url field before display only

I want to create a plugin to sanitize comment and mainly the url field before display only (not before adding to database), to filter the url fields and only allow displaying this field only if it ...