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 MIT License (MIT) | |
| Copyright (c) 2015 Justin Perry | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
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 post type image support | |
| add_action( 'init', 'enable_job_thumbnails', 50 ); | |
| function enable_job_thumbnails() { | |
| add_post_type_support( 'job_listing', 'thumbnail' ); | |
| } | |
| // Set first uploaded attached image as thumbnail |
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
| // First, create a function that includes the path to your favicon | |
| function add_favicon() { | |
| $favicon_url = get_stylesheet_directory_uri() . '/images/icons/admin-favicon.ico'; | |
| echo '<link rel="shortcut icon" href="' . $favicon_url . '" />'; | |
| } | |
| // Now, just make sure that function runs when you're on the login page and admin pages | |
| add_action('login_head', 'add_favicon'); | |
| add_action('admin_head', 'add_favicon'); |