워드프레스에서 최대 업로드 사이즈 변경하기
워드프레스에서 최대 업로드 사이즈 변경하기 function max_upload_size($limit = 2000) { if (!is_admin()) { return; } add_filter('upload_size_limit', function () use ($limit) { return $limit * 1024; }); }
워드프레스에서 최대 업로드 사이즈 변경하기 function max_upload_size($limit = 2000) { if (!is_admin()) { return; } add_filter('upload_size_limit', function () use ($limit) { return $limit * 1024; }); }
워드프레스 블록에디터 비활성화하기 모든 글에서 비활성화하기 /* * Filters whether a post is able to be edited in the block editor. * * @see https://developer.wordpress.org/reference/hooks/use_block_editor_for_post/ */ add_filter('use_block_editor_for_post', '__return_false'); 특정 글에만 …
datepicker 한글 번역하기 $("#datepicker1").datepicker({ dateFormat: 'yy-mm-dd', prevText: '이전 달', nextText: '다음 달', monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], dayNames: ['일','월','화','수','목','금','토'], dayNamesShort: ['일','월','화','수','목','금','토'], dayNamesMin: ['일','월','화','수','목','금','토'], showMonthAfterYear: true, changeMonth: true, changeYear: true, yearSuffix: '년', …
우분투에서 도커 설치 Add Repository $ apt update $ apt install apt-transport-https ca-certificates curl software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – $ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic …
자바스크립트에서 체크박스 전체클릭 만들기 <form method="get"> <input type="checkbox" id="checkbox" /> <input type="submit" value="Go!" /> </form> $("#checkbox").on("click", function (e) { var checkboxes = document.querySelectorAll(".check"); for (var i = 0; i < …
워드프레스에서 날짜 포맷 변경하기 $dt_gmt = get_the_author_meta('user_registered', $user_id); $dt = get_date_from_gmt($dt_gmt, 'Y-m-d H:i:s'); echo date_i18n('Y-m-d H:i:s', strtotime($dt));
자바스크립트에서 현재 날짜 구하기 Usage object var today = new Date(); var tomorrow = today.setDate(today.getDate() + 1); 2017/2/10 17:6:17 var year = today.getFullYear(); var month = today.getMonth() + 1; //January …
자바스크립트에서 타이머 점점 빠르게 구현하기 $element.find('a[data-action^="increment"], a[data-action^="decrement"]') .each(function() { var timer = 0; var cb = function(element, started) { var stopped = new Date().getTime(); var run = function() { $(element).trigger('click'); …
복사방지 스크립트 추가하기 요약 Edit index.html <body oncontextmenu="return false" ondragstart="return false" onselectstart="return false"> … </body> 설명 마우스 오른쪽 메뉴 금지 oncontextmenu = "return false"; 마우스 드래그 금지 ondragstart = "return …
PYTHON에서 주민등록번호 유효성 검사하기 ''' 주민등록번호 유효성 검사하기 9 8 1 0 2 5 – 1 5 6 2 8 7 6 x 2 3 4 5 6 7 8 …