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 | |
| /** | |
| * Remove Link When Adding Media | |
| * | |
| * Adding media to a WYSIWYG editor can sometimes automatically include a link | |
| * to the file. This sets the default behavior for all users to none. | |
| * | |
| * @return void | |
| */ | |
| function prefix_media_linking() { |
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 echo esc_url( add_query_arg( $wp->query_string, '', home_url( $wp->request ) ) ); ?> |
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
| <div class="addthis_sharing_toolbox"></div> |
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 | |
| /** | |
| * Modify Main Query | |
| * | |
| * Add multiple post types to main query. | |
| * | |
| * @param object $query main query object | |
| * @return no return value necessary. | |
| */ | |
| function _s_post_type_1_archive( $query ) { |
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
| # Rewrite url with or without trailing slash, case insensitive | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteRule ^path/?$ /new/path/ [NC,L,R=301] | |
| </IfModule> |
OlderNewer