2,246 reputation
617
bio website deluxeblogtips.com
location Hanoi, Vietnam
age 29
visits member for 3 years, 11 months
seen Nov 21 at 8:29

A WordPress enthusiast, author of Meta Box plugin, working at FitWP, a team that makes premium WordPress themes and blogging at Deluxe Blog Tips.


Nov
4
comment Determine Term depth
Very nice solution. Thanks!
Oct
12
comment Add custom message to the plugins page of Wordpress
Try get_current_screen() function to get current screen (admin page) information.
Sep
16
comment get term by id without taxonomy
Why do you just use $wpdb->get_var to select only taxonomy from the database?
Sep
10
comment Check if add_menu_page exists or not
I bookmarked this answer a long time ago and now just used it. It works perfectly. Simple and effective. Thanks!
Jul
16
comment Is it possible to override the result of get_template_part()?
I think this is a good way to do that. Not sure why it's not accepted :)
May
28
answered Actions, functions and conditionals
Feb
5
comment Loading scripts & styles from a meta box callback function
@knutole just fixed the link
Feb
5
revised Loading scripts & styles from a meta box callback function
deleted 27 characters in body
Feb
5
comment How to restrict actions and filters “properly” by conditions
This is a better solution. Putting the condition (current_user_can) outside any scope requires the availability of that function, and it might not when you load plugin/theme.
Dec
18
awarded  Yearling
Dec
4
comment Change wording of default thumbnail metabox
@Howdy_McGee that is correct with JS issue. I think the only way to do this is via Javascript.
Nov
22
comment WordPress Multisite - global categories
There's a big problem with this approach: The relations between posts and terms might not be correct. The table term_relationships contains this relation based on post ID and term ID. But there's always chance that posts in subsites have same ID. Changing terms for 1 post might unpredictable affect on another post in another blog.
May
29
answered Wordpress Media Manager - limit to specific mime type
May
29
comment Which action for triggering cron “wp”or “init”?
While this is a correct "design" for adding cron in WP, it still have problem in some cases like: updating plugin version (trigger doesn't happen because the plugin has been activated), or in development stage when you modify the plugin code. Using init or wp hook may not be the "right" approach, but it solves these problems.
Mar
13
comment Get multiple roles with get_users
Works like a charm! Thanks for sharing.
Feb
7
comment How to output content based on same custom taxonomy?
Updated the answer with code to get term slugs.
Feb
7
revised How to output content based on same custom taxonomy?
added 158 characters in body
Feb
7
answered How to output content based on same custom taxonomy?
Feb
1
comment How can I see all the actions attached to an “add_action” hook?
You can put it in header or footer, using wp_head, wp_footer or shutdown hook. Note: if you don't want users to see this debug information, you should check user permission by if ( current_user_can( 'manage_options' ) ) {...}
Jan
30
comment Showing posts for today and future
Correct, the post_status can accept an array (or string) as its value.