Method by which plugins and themes extend core WordPress functionality.

learn more… | top users | synonyms

0
votes
1answer
174 views

Modify message displayed on post save

After a post is updated there is a message displayed, how can I change the displayed text? I would like to remove the "view post" link and change the 'Post published' text. I'd like to do this for a ...
0
votes
3answers
152 views

About Hooks and Filters

Well, am having a very hard time understanding the difference between Actions and Filters. I do use actions in my code, but am a rookie and I don't know even a slightest bit of Filters. I have been ...
0
votes
2answers
2k views

How to hook into Add New Member in BuddyPress

I have a hook into the WordPress Add New User process via an add_action('user_register', 'doMyFunction'); hook. What results is that I am (Step 1) adding a new user through WordPress and then (Step ...
0
votes
1answer
522 views

Custom posts and get_post_meta in {$post_status}_{$post_type}

I am making a function to parse a .csv file uploaded in a custom field of a custom post. The name of the custom phone and the field's name is plan_information . The problem is when I ...
0
votes
1answer
347 views

How to change database values on theme update

I have a theme released into the wild but have not prefixed the post type appropriately. Yes, I know, it's a shame and I regret it :( So, I am currently using acme as the post type name, but I' like ...
0
votes
1answer
798 views

hook for lostpassword form

Im trying to add captcha to my remember lost password form: I've added the input with the lostpassword_form hook and is ok. now in the processing I need to add a error when captcha is invalid: ...
0
votes
1answer
283 views

How can I modify the header of RSS feed items?

Specifically I would like to change the value of <dc:creator> in the feed items. In order to display the site name instead of the post author. I'm able to hook into the_title_rss , ...
0
votes
1answer
124 views

Bug: Post needs to be updated twice when adding action for save_post hook

My function does exactly what I want it to do: I'm trying to add/update meta fields in another post type when an "events" post is saved. Except the post needs to be updated twice for the information ...
0
votes
1answer
345 views

Changing the text of Upload/Insert on Posts and Pages Screen

In wp-admin/includes/media.php I found this: function media_buttons($editor_id = 'content') { $context = apply_filters('media_buttons_context', __('Upload/Insert %s')); $img = '<img ...
0
votes
1answer
84 views

Remove iPhone detection on login page

I have a wordpress site with a customized login page, the problem is when I go to that page on my iPhone, it detects it as an iPhone and adds the viewport meta tag, which normally would be great but ...
0
votes
2answers
240 views

How to deactivate my plugin upon deactivation of NextGen

i'm writing this plugin and i need to deactivate it when NextGen is deactivated: <?php /* Plugin Name: Plugin Name Description: Description Version: 1.0 Author: Author Author URI: Author URI */ ...
0
votes
1answer
1k views

Hooking custom PHP output into WP: how to do it, parse_request almost works but not quite

I'm new to wordpress, so chances are I'm missing something pretty basic here. I'm trying to write a plugin which uses custom PHP code to generate output. I managed to get this working on the ...
0
votes
1answer
98 views

Distinguish between different widgets of the same type

I'm playing a little with wordpress widgets and I trying to do something like this: I created a sidebar and a widget to display a slider with latest posts. The jQuery loader is something like this: ...
0
votes
2answers
826 views

Where exactly does the edit_{taxonomy} hook fire?

I'm at my wits end. I'm beginning a project that may involve using an action hook in WP that is not well-documented: edit_{$taxonomy} I'm trying to determine exactly when this hook runs, so I just ...
0
votes
2answers
701 views

modify URL with mod_rewrite or hook

i'm trying to achieve the following: user enters this URL into browser http://mydomain.com/boston/categoryname/postname/ i then want to get the first "folder" and check whether or not it's ...
0
votes
1answer
209 views

Replacing a placeholder term with a session variable value in taxonomy filter

I have in my themes some code which will set a session variable. For the sake of example, it's a geolocation routine which will set to either USA, UK or ROW, resulting in: $_SESSION['region'] = ...
0
votes
1answer
378 views

Modify posts listing at back end

I want to modify posts listing at back end? Say, for a particular user, with role author, O want to list only few posts at posts listing. How can I do this?
0
votes
1answer
113 views

Change status of page after an event (Looking for best practice advice)

I'm looking for a best practice/ideas for modifying the status/data of a page after an event. Here's an example of what I'm trying to accomplish - This WordPress site would allow users to sponsor ...
0
votes
1answer
915 views

Hook for page Request?

I want to run a function that looks at the current url params of the page that is requested and sets a cookie based on those params. So, I guess I'm looking for: The Wordpress Hook that allows me ...
0
votes
1answer
2k views

wp_insert_post hook for a wordpress plugin

I'm trying to make a wordpress plugin to auto-translate posts just before it's inserted, it's for a specific need where I want to write in a language, post in a different one, so far, I'm not able to ...
0
votes
1answer
3k views

How to automatically activate users after registration without activation email?

I want to auto-login my users after signup without an activation email requirement (I'm not concerned about spammers). How might I go about doing this? Thanks!
0
votes
1answer
384 views

Creating a plugin that will display text on every page

I know there is going to be an easy way to do this but I just can't seem to find the best practice for the following; I have a plugin which when complete should generate HTML on every page, I want it ...
0
votes
1answer
369 views

Filter for replacing the WP_query object for a given category

I'm looking for a action/filter to replace replace a category archive page with the contents of a page. I'm thinking of testing the category ID, and replacing the WP_Query object with a new one ...
0
votes
1answer
4k views

Help me to understand wp_header() and wp_footer() functions

hi everyone please help me to understand the hook functions wp_header() and wp_footer() What does it mean hook functions and what to do
0
votes
1answer
331 views

How to set Media Box form elements default value?

I am developing a plugin to customize wordpress administration. Creating / Editing an article, when i user insert an image from media library or uploading it, i want to clear the image title, as ...
0
votes
1answer
92 views

Hooks to run after a core upgrade?

Are there any hooks for running plugin code after a core upgrade? Specifically, I'm running into issues that a users wp-admin column choice in the 'Screen Options' are modified after an upgrade - I ...
0
votes
1answer
2k views

Wordpress add_action the_post hook

Now i face a problem, that i want to add a hook into the the_post. Then i use print_r($post); here display the my print_r content and again display the default content. because i am here in ...
0
votes
1answer
1k views

How to remove a meta description or other <head> contents

I have a plugin that generates a meta description or title as two of its features. However I run into the problem of other SEO plugins possibly being installed, and ending up with two meta ...
0
votes
1answer
244 views

Post via wp-admin and via iOS app, same hooks and triggers involved?

I've got an add_action in functions.php, the action is for save_post and the function I'm running I've named set_attachment_url. I'm simply getting the first attachment on a post and setting a custom ...
0
votes
1answer
216 views

Which hook to use when adding ajax to viewer-facing side?

I have a shortcode that contains a form. I want to use jQuery/Ajax for POSTing. For this, I want to add javascript to the page where shortcode is added? Which hook should I use? wp_enqueue_scripts ...
0
votes
1answer
31 views

Plugin Hook When New Author Added

Is there a way to add a hook for a plugin when a new author is added by the administrator? I would like to be able to add that user to my plugin database table. Thank you.
0
votes
2answers
696 views

How do I override the search template in a plugin?

How do I override the search template i.e. used inside a theme with a custom search page inside a plugin? Please point our any relevant action/filter hooks which can be used to do this. Any help is ...
0
votes
2answers
675 views

Change custom post type GUID in RSS

So i got the RSS feed which output some custom post types, but the GUID looks bad to me, it's like: ?post_type=mycustompost&p=124 The reason i want to change this is that I don't need people to ...
0
votes
2answers
639 views

How to recover the post ID earlier in the WP admin hook action “firing” sequence?

I am creating a WP plugin based around Custom Post Types (CPT), where you can dynamically specify a CPT, complete with any number of associated dynamic Meta Boxes and form elements such as radio ...
0
votes
3answers
575 views

add_action hook for links.php page

What is the definite hook which identifies links.php page (add, edit, delete, etc. Blogroll Links), and only this page? Any help would be appreciated. Thanks, cadeyrn EDIT Sorry, I forgot to ...
0
votes
1answer
256 views

BuddyPress - A hook available to hide custom born date on public profile view?

I'm trying to hide some fields on public BuddyPress profiles, it is possible? Thanks in advance.
0
votes
1answer
183 views

Preset Widgets ONLY after site is initially created

I want to preset some widgets using functions included in my theme ONLY after a site is initially created (my theme is the default for all new sites in my instance of WordPress). I DO NOT want my ...
0
votes
1answer
973 views

Adding custom Field To The Posts Listing

Are there plugins or hooks to editing custom fields just from the posts listing in admin panel?
0
votes
1answer
510 views

Hook for plugin to insert into entry-meta

pretty simple. I'm creating a plugin and I want to dynamically insert some text that will change every hour into the line that is directly below the title of a post (So filters are no good). It's the ...
0
votes
4answers
2k views

Remove Page Title from Static Frontpage

I'd like to remove the post title from my static frontpage. Just that page. I've created a child theme from a free Press75 theme. So I'd like to make this change in my child theme's function.php. I ...
0
votes
1answer
266 views

How to add or delete default value theme options while activate and deactivate theme

I want to add & reset default value for my theme options while activate and deactivate a theme More clearly something like this if(theme active) add_option(); // add new option to the theme ...
0
votes
2answers
303 views

Using Custom Fields to Trigger Specific Actions on Saving a Post?

Can custom fields be used to determine specific actions upon saving a post to the database? Which action(s) make this possible, since adding post medata seems to always occur after saving a post and ...
0
votes
0answers
18 views

Trying to add a list of 4 products below each subcategory title on the Product Category page

I am trying to add 4 products below each of the subcategories for the Product Category page, these should be 4 products from the specific category. Picture below to explain: http://imgur.com/0ziqRGp ...
0
votes
0answers
13 views

Add a new dynamic submenu to an existing menu trough a hook

I have created a function which binds to a shortcode, for inserting a language switcher in the form of a dropdown menu. Now I don't want this menu inserted trough shortcode, but instead i want to ...
0
votes
0answers
17 views

How to modify core when there is no hook?

I want to add a custom HTML5 attribute to the <form> element in the comments form. Since the form field itself is generated by comment_form(), and there is no hook to edit within the opening ...
0
votes
1answer
18 views

WooCommerce comments_template Filter Not Firing

I have a template file that is being called via wp_ajax that returns data from a specific WooCommerce product. In the "tabs" section of the template file every tab is working fine: Description - ...
0
votes
1answer
22 views

Modify a plugin's content

I'm using Mooberry Book Manager which has a hook in it's grid mbdb_book_grid_after_link I've created a plug in so that I can show additional content in the grid, it's very basic <?php /* Plugin ...
0
votes
2answers
29 views

Which hook runs first(init,… or ???) [duplicate]

For example,any "naked" code, i.e.: IF ($_POST) then...., runs directly, before any WP action. for example, this runs later (even with point 1): add_action('init','my_function',1); I want to ...
0
votes
1answer
18 views

What is the action or filter for changing permalink in Edit Post/Page?

I know about edit_form_after_title hook but what about changing the permalink. How does WordPress creates permalink because that permalink and the one that get_the_permalink returns doesn't match? ...
0
votes
1answer
19 views

hook that when page is strating to load

I want to create a page loading message based on php when the wp page is starting to load. is there a hook about it? simply like opposite of wp_loaded? wp_loaded is after the page is fully loaded, I ...