CTO - Bitcoin Crypto Currency Template

CTO – Bitcoin Crypto Currency Template

CTO template is suitable for bitcoin, blockchain, coin currency, crypto currency, currency, Currency Exchange, digital currency, exchange, exchange currency, litecoin, mining, online wallet. CTO template has a fully responsive layout. It fits perfectly on various displays and resolutions from regular desktop screens to tablets, iPads, iPhones and small mobile devices. All components used in the …

CTO – Bitcoin Crypto Currency Template Read More »

bbpress topic info short code

This short code will show the current topic info of the bbpress forum plugin on the sidebar. You can place this code on your theme functions.php file.   [php] /** * bbpress topic info short code */ function bbpress_topic_info_func( $atts ){ global $wp_query; $post = $wp_query->get_queried_object(); if($post->post_type == "topic"){ ob_start(); ?> <ul class="topic-info"> <li class="topic-forum"> …

bbpress topic info short code Read More »

wpml language switcher shortcode

[php] function language_switcher_fun( $atts ){ ob_start(); do_action(‘icl_language_selector’); return ob_get_clean(); } add_shortcode( ‘language_switcher_shortcode’, ‘language_switcher_fun’ ); [/php] You can use it like this [language_switcher_shortcode]

Include category id in body_class() and post_class()

Use this code on your themes functions.php to add current category id on body and post [php] function category_id_class($classes) { global $post; foreach ((get_the_category($post->ID)) as $category) $classes[] = ‘cat-‘ . $category->cat_ID . ‘-id’; return $classes; } add_filter(‘post_class’, ‘category_id_class’); add_filter(‘body_class’, ‘category_id_class’); [/php]

Set a maximum upload count for users on a specific user role

Use the following code to limit 10 upload for specific role [php] add_filter( ‘wp_handle_upload_prefilter’, ‘limit_uploads_for_user_roles’ ); function limit_uploads_for_user_roles( $file ) { $user = wp_get_current_user(); // add the role you want to limit in the array $limit_roles = array(‘contributor’); $filtered = apply_filters( ‘limit_uploads_for_roles’, $limit_roles, $user ); if ( array_intersect( $limit_roles, $user->roles ) ) { $upload_count = …

Set a maximum upload count for users on a specific user role Read More »

How to change “Registration complete. Please check your e-mail.” message in wp-login.php

You can use this filter to change the default “Registration complete. Please check your e-mail.” message on wordpress. [php] add_filter( ‘wp_login_errors’, ‘override_reg_complete_msg’, 10, 2 ); function override_reg_complete_msg( $errors, $redirect_to ) { if( isset( $errors->errors[‘registered’] ) ) { $needle = __(‘Registration complete. Please check your e-mail.’); foreach( $errors->errors[‘registered’] as $index => $msg ) { if( $msg …

How to change “Registration complete. Please check your e-mail.” message in wp-login.php Read More »

Free HTML5 tools for developer

Since start of HTML5 it took the web to next level.Now most of the web development is implemented using HTML5 and css3 . Today i listed some HTML5 tools to reduce the development time. 1) Modernizr.com Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.It will add class on …

Free HTML5 tools for developer Read More »