Jquery UI tabs
Disable ui tabs menu
$("#tabs").tabs("option","disabled", [0, 1]); // Option 1
$( "#tabs" ).tabs( "disable", "#tabs-2" ); // Option 2
$( '#tabs li.disabled-tab' ).addClass( 'ui-state-disabled' ); // Option 3
How to display Youtube video’s featured image ( thumbnail image )? We have numbered of ways to display the Youtube video’s featured image or thumbnail image. We want to display image instead of Youtube videos most specially in the categories right? In this examples, https://www.anthonypagaycarbon.com/category/entertainment/ we will see I’m using image instead of the video…
Code below is to get current user ID. $user_ID = get_current_user_id(); Code below is to get all user meta. $user_meta = array_map( function( $a ){ return $a[0]; }, get_user_meta( $user_ID ) ); echo $user_meta[last_name]; echo $user_meta[description]; Output : Development Lorem ipsum dolor sit amet, nunc arcu urna, id donec. Sample array. Array ( [first_name] =>…
How to get the current post parent category ID? Just copy the codes below and paste this your template. global $post; $category = get_the_category( get_the_ID() ); $parent = $category[0]->term_id
How to Zoom in effects in hover? Copy the HTML / CSS structure and paste it into your editor. Example: HTML <a class="zoom-in-hover" href="#"> <span class="group"> <img src="https://www.anthonypagaycarbon.com/wp-content/plugins/wordpress-popular-posts/no_thumb.jpg" alt="Zoom in effects in hover" /> </span> </a> CSS .zoom-in-hover { overflow: hidden; display: inline-block; text-align: center; } .zoom-in-hover .group { -webkit-transition: all 0.3s ease-in-out; -moz-transition: all…
Freelance tips, how to get paid from your clients? After closing a client, I always ask for a deposit and get paid upfront at least 40% of the total cost of the project. Why is that? 1. If the client does the deposit upfront, the project is real and not bullshit. The client is committed…
How to change group avatar thumbnail? <?php bp_group_avatar_thumb() ?> // Usage bp_group_avatar( 'type=thumb&width=50&height=50' ); // Original codes function bp_group_avatar( $args = '' ) { echo bp_get_group_avatar( $args ); } function bp_get_group_avatar( $args = '' ) { global $groups_template; // Bail if avatars are turned off. if ( bp_disable_group_avatar_uploads() || ! buddypress()->avatar->show_avatars ) { return false;…