Skip to content

Instantly share code, notes, and snippets.

@Max0220
Max0220 / get-post-type-by-taxonomy.php
Created March 25, 2023 15:02 — forked from joshuadavidnelson/get-post-type-by-taxonomy.php
Get post types that have a specific taxonomy
<?php
/**
* Get post types that have a specific taxonomy (a combination of get_post_types and get_object_taxonomies)
*
* @author Joshua David Nelson, josh@joshuadnelson.com
* @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2.0
*
* @see register_post_types(), get_post_types(), get_object_taxonomies()
*
* @param string $taxonomy Required. The name of the taxonomy the post type(s) supports.
@Max0220
Max0220 / get-jet-engine-gallery-images.php
Created August 10, 2022 21:01 — forked from MjHead/get-jet-engine-gallery-images.php
Example how to get an array of images stored in JetEngine gallery field
@Max0220
Max0220 / htaccess.expires.headers
Created April 23, 2021 00:25 — forked from solancer/htaccess.expires.headers
htaccess expires headers
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/atom+xml "access plus 1 hour"
@Max0220
Max0220 / polylang_custom_language_switcher.css
Created March 17, 2021 14:35 — forked from zeshanshani/polylang_custom_language_switcher.css
Custom Language Switcher for Polylang. Contains both the PHP function and SCSS styling. HTML markup is using BEM methodology. SCSS file is using my variables and mixins from here: https://gist.github.com/zeshanshani/c4d5ae43e6a9f661d012
/* Component: Languages */
.languages__item {
text-transform: uppercase;
color: #899099;
font-size: 13px;
font-size: 1.3rem;
line-height: 1.15;
}
.languages__item--current {
color: #212121;
@Max0220
Max0220 / doc_descr.txt
Created January 17, 2021 18:07 — forked from pisotskiy-evgenii/doc_descr.txt
Wordpress (подготовка перед натяжкой)
Axxon - WebDesign (смотри с 22 урока и до конца)
https://www.youtube.com/watch?v=-jonfg3fo5M&list=PLzGX_ggMZ5EyRBceudiD1FoPO2UHIhV7j&index=22
Glo Academy
https://www.youtube.com/watch?v=u_3BfxwkjWw - 1 часть(без 2й части ничего не делай)
https://www.youtube.com/watch?v=AiPkeBWwI3s - 2 часть
Уроки веб-разработки
https://www.youtube.com/watch?v=xmJkgbiBBUQ&list=PLcVuGt1dXgc3PQhr1Lg-BGh3X3svQl0ze (6 уроков)
@Max0220
Max0220 / media-query.css
Created February 20, 2019 21:24 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Max0220
Max0220 / repo-full-copy.sh
Created December 7, 2017 15:57 — forked from AgiosAndreas/repo-full-copy.sh
Полный перенос git репозитория на другой сервер
# Клонируем исходный репозиторий без рабочего каталога (--bare)
git clone --bare https://github.com/exampleuser/old-repository.git
cd old-repository.git
# Делаем mirror-push(будут скопированы все ветки и тэги) в новый репозиторий
git push --mirror https://github.com/exampleuser/new-repository.git
cd ..
# Удаляем папку с репозиторием