Skip to content

Instantly share code, notes, and snippets.

@mihail-petrov
mihail-petrov / hyper.js
Last active October 28, 2022 18:22 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 24,
// font family with optional fallbacks
fontFamily:
'Fira Code, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
<?php
// returns boolean
function is_custom_post_type( $type = '' ) {
// access to currently queried post
global $post;
// get the current post type
$post_type = get_post_type( $post );
<?php
/*
* Usage for a custom post type named 'movies':
* unregister_post_type( 'movies' );
*
* Usage for the built in 'post' post type:
* unregister_post_type( 'post', 'edit.php' );
*/
function unregister_post_type( $post_type, $slug = '' ){