How to submit readme.txt file in wordpress directory
Simply add the readme.txt to your trunk directory and commit the changes. Its covered in the plugin Developer FAQ
Simply add the readme.txt to your trunk directory and commit the changes. Its covered in the plugin Developer FAQ
Perhaps WordPress database schema is not so good for an implementation like this one, there’s a couple of ways of how to do it. You could set a rating post type that is actually a reference with attachmed images and some information for people to rate. So, every time a is_user_logged_in user rates any post … Read more
There is a native WordPress function to do exactly what it sounds like you’re trying to do. You need to replace userphoto_thumbnail($user_info, $before=””, $after=””, $attributes = array(width => ’40’, height => ’40’), $default_src=””) with get_avatar($user_info->ID,40) Check here for your future reference – http://codex.wordpress.org/Function_Reference/get_avatar
Dadra, A bit off the WordPress topic, but you may want to consider using the US Census API to do your lookups. Integrating this into WP should be pretty simple, could be done by zipcode, city name, etc… and could be done with and AJAX callback all on one page. Example of what I think … Read more
First check out the super-post by @Rarst Between functions.php, widgets and plugins, which is loaded first? If you load jQuery always enqueue it to avoid conflicts: Include jQuery in WordPress Theme and also check out this article: The Developer’s Guide To Conflict-Free JavaScript And CSS In WordPress
That function is used to render button and it’s called inside fpp_post_submitbox_start_action(), which does some conditional check and is hooked into post_submitbox_start action. First you need to remove plugins original action and use your own with conditional to render button. See code example below. // Remove original action remove_action( ‘post_submitbox_start’, ‘fpp_post_submitbox_start_action’ ); /** * Renders … Read more
// Out of stock for general woocommerce – might help someone function product_in_stock($post, $product) { if (!$product->is_in_stock()) { $STOCK = TRUE; return $STOCK; } else { return false; } } function check_if_out_of_stock(){ global $post,$product; $stock = product_in_stock($post,$product); $output=”<div class=””; $output .= $stock?”instock”:”outofstock”; $output .= ‘”>’; echo $output; } add_action( ‘woocommerce_before_shop_loop_item’, ‘check_if_out_of_stock’); function close_out_of_stock(){ echo “</div>”; … Read more
You can use http://ifttt.com to set up a YouTube channel notification.
get_current_site() is a (globally accessible) function (located in ms-functions.php), it’s not a class method, so simply call it it by its name like you would do with any other function. $currentSite = get_current_site();
Values set in the ‘std’ key of the array, ‘std’ => ‘your default value’ Are saved to the database on first initialization of the framework. Once you overwrite the default value and or remove the default value, even if left as a blank field, the default no longer applies unless you hit the “restore defaults” … Read more