This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Update CSS within in Admin | |
function admin_style() { | |
// 변수 | |
$CDN = ''; | |
$Static = 'https://static4log.s3.ap-northeast-2.amazonaws.com/4log'; | |
wp_enqueue_style('WP_list_table', $Static.'/css/admin_dashborad.css'); | |
wp_register_script( 'my_script', $Static.'/js/copy_btn.js', array('jquery'), '1.0.0', true); | |
wp_register_style( 'FontAwesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', false ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_admin_body_class( $classes ) { | |
return "$classes dan_admin_dashborad"; | |
// Or: return "$classes my_class_1 my_class_2 my_class_3"; | |
} | |
add_filter( 'admin_body_class', 'my_admin_body_class' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function themeslug_enqueue() { | |
// 변수 | |
$CDN = 'https://cdnjs.cloudflare.com/ajax/libs'; | |
$Static = 'https://static4log.s3.ap-northeast-2.amazonaws.com/4log'; | |
$current_user = new WP_User(get_current_user_id()); | |
$user_role = array_shift($current_user->roles); | |
// CDN | |
// ------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add page slug as a body class | |
function add_slug_body_class( $classes ) { | |
global $post; | |
if ( isset( $post ) ) { | |
$classes[] = $post->post_type . '-' . $post->post_name; | |
} | |
return $classes; | |
} | |
add_filter( 'body_class', 'add_slug_body_class' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Responsive Web Design | |
$breakpoints: ( | |
"sm": ( | |
min-width: 576px | |
), | |
"md": ( | |
min-width: 768px | |
), | |
"lg": ( | |
min-width: 992px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: template | |
* Template Post Type: page, post | |
*/ | |
get_header(); | |
get_footer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function callback($buffer) | |
{ | |
return (str_replace("foo", "cool", $buffer)); | |
} | |
ob_start("callback"); | |
include 'foo.php'; | |
ob_end_flush(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const breakpoints: { | |
hg: 1440, | |
xl: 1200, | |
lg: 992, | |
md: 768, | |
sm: 576, | |
xs: 575, | |
} as const; | |
const Grid = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells | |
chsh -s `which fish` |
OlderNewer