Tag Info

Hot answers tagged


Taken from the source code of get_bloginfo(), Here is a very very simple class you can utelize and extent at your will. I have decided to make use of methods, making properties public from a class is really not great coding and not recommended. I know Wordpress thrive on public properties, but that is Wordpress. Here is the class (which you should convert ...


The meta description isn't part of the Twenty Fifteen theme. You mentioned the Yoast plugin in a previous question yesterday, so I guess the meta description comes from there. According to their API page, there's a filter called wpseo_metadesc that might be what you're looking for. Here's an untested example: /** * Change the Yoast meta description for ...


You can filter template_directory_uri: <?php add_filter( 'template_directory_uri', function( $template_dir_uri ){ return str_replace( 'http://example.com', 'https://cdn.example.com', $template_dir_uri ); }); This will change URIs so they point at a CDN subdomain served via HTTPS.

Only top voted, non community-wiki answers of a minimum length are eligible