codex73
Forum Replies Created
-
Forum: Plugins
In reply to: [Disqus Comment System] comment replies do not appear on sitedid you solve this problem? what was the issue?
Forum: Plugins
In reply to: [WP About Author] Author Box appearing on Custom Post TypesThis is what I did to solve the problem so it doesn’t on some Custom Types:
I wrapped this line:
return apply_filters( 'wp_about_author_display', $return_content );
Grab the ID of the post, check the post type against the array of post types I don’t want to include the Author Box, then return the filters if passes check:
$postid = get_the_ID(); $my_custom_types = array("one-custom-type-name","products"); if (!in_array(get_post_type($postid), $my_custom_types)){ return apply_filters( 'wp_about_author_display', $return_content ); }
Forum: Plugins
In reply to: [Custom Post Type UI] All pages display index.php instead of page contentThanks for sharing this tip lord_dev
Forum: Plugins
In reply to: [WooCommerce] Gallery option Available / Missing from ProductThanks so much for your help ??
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] call_user_func_array ErrorHey Guys, sorry I wasn’t referring to Jeff’s plugin with my comment, but to my own plugin. I looked to the repo, but it has lots of files to go through. @ctruelson If you leave only this plugin enabled and disable the others, will it still break?
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] call_user_func_array ErrorFound this good article. Writing a WordPress Plugin Using Classes
Haven’t tried the code, but it looks good.
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] call_user_func_array ErrorJeff, After searching for a solution, I stumbled on your comment “improperly passing an array”. Well, that was it!
I going through some old tutorial where it’s using a class and referencing the hook like this:
add_action('admin_menu', array(&$objectname,'pluginname_admin_actions'), 1);
I’ve broken the class into inline procedural functions and passed only a string and it works great.
How could I use a class instead?
Any particular way to reference the function?
I tried
$objectname->functionaname()
but no good…. ??