Deregistering Custom Post Types

Deregistering Custom Post Types from WordPress is easy and simple.

Follow the steps below:

 * Deregister matching post types.
function unregister_custom_post_types() {
    global $wp_post_types;
    foreach( array( 'services', 'staffs', 'projects', 'testimonials' ) as $post_type ) {
        if ( isset( $wp_post_types[ $post_type ] ) ) {
            unset( $wp_post_types[ $post_type ] );
add_action( 'init', 'unregister_custom_post_types', 20 );

Download Prisma for Android

New update: 25 Jul, 2016 1:00 AM BST

Prisma for Android finally launched. I just found the Official Announcement on their Facebook page:

Install the Prisma for Android from Play Store Now!

Previous Update

As posted on their Official Facebook page, Prisma guys stopped their beta service and anticipate to release the first version of Prisma for Android later this month.

Make Divi Accordions Closed by default

To do so, add the following JavaScript codes via Divi > Theme Options > Integrations > Head Code

    $('.et_pb_accordion .et_pb_toggle_open').addClass('et_pb_toggle_close').removeClass('et_pb_toggle_open');
    $('.et_pb_accordion .et_pb_toggle').click(function() {
      $this = $(this);