This file contains hidden or 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
| pkill -9 -f 'Transmit Disk' |
This file contains hidden or 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
| /** prevent uploading of .bmp files. */ | |
| add_filter('upload_mimes', function(array $mimes) | |
| { | |
| unset($mimes['bmp']); | |
| unset($mimes['png']); | |
| return $mimes; | |
| }); |
This file contains hidden or 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
| if ( have_posts() ) : | |
| while ( have_posts() ) : the_post(); | |
| endwhile; | |
| endif; |
This file contains hidden or 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
| // fuck off emoji | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
| remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
| remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
| remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
This file contains hidden or 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
| // The Query | |
| $the_query = new WP_Query( $args_e ); | |
| if ($the_query->have_posts()) : | |
| $out .= '<h4 class="subtitle">'.__('Výhry', 'xyz').'</h4>'; | |
| // The Loop | |
| $actual_post_count = ($the_query->post_count); | |
| $divide_by = 2; | |
| $i = 0; |
This file contains hidden or 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
| function change_post_label() { | |
| global $menu; | |
| global $submenu; | |
| $menu[5][0] = 'News'; | |
| $submenu['edit.php'][5][0] = 'News'; | |
| $submenu['edit.php'][10][0] = 'Add News'; | |
| $submenu['edit.php'][16][0] = 'News Tags'; | |
| echo ''; | |
| } | |
| function change_post_object() { |
This file contains hidden or 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 | |
| /** | |
| * Calls the class on the post edit screen. | |
| */ | |
| function call_someClass() { | |
| new someClass(); | |
| } | |
| if ( is_admin() ) { |
This file contains hidden or 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 | |
| // hook into the init action and call create_my_taxonomies when it fires | |
| add_action( 'init', 'create_my_taxonomies', 0 ); | |
| // create two taxonomies, hierarchival_group and liner_groups for the post type "my" | |
| function create_my_taxonomies() { | |
| // ------------ Hierarchical ------------ | |
| // Add new taxonomy, make it hierarchical (like categories) | |
| $labels = array( |
This file contains hidden or 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_action( 'init', 'register_my_post_type' ); | |
| /** | |
| * Register a type post type. | |
| * | |
| * @link http://codex.wordpress.org/Function_Reference/register_post_type | |
| */ | |
| function register_my_post_type() { | |
| $labels = array( | |
| 'name' => _x( 'types', 'post type general name', 'your-plugin-textdomain' ), |
This file contains hidden or 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
| // picture ids: array(1, 2, 3) | |
| // $queries = array( | |
| // array('large_screens','min-width: 1450px'), | |
| // array('medium','max-width: 480px'), | |
| // array('large','') | |
| // ); | |
| function responsive_background_pictures($id_array, $queries){ | |
| $with_euery = ''; | |
| $without_euery = ''; | |
| // for each style resolution |