skt_black_wp_title

Filters wp_title to print a neat tag based on what is being viewed.</p> </section> <section id="description"><h2>Description</h2><pre><div>skt_black_wp_title( <a href="#" class="param" data-type="" data-desc="The title." data-depr="" data-opt="" title="The title.">$title</a>, <a href="#" class="param" data-type="" data-desc="The sep." data-depr="" data-opt="" title="The sep.">$sep</a> ); </div></pre></section> <section id="params"><h2>Parameters <span class="count">(2)</span></h2><dl><dt> <span class="index">0.</span> <span class="param"> $title </span></dt><dd> The title.</dd><dt> <span class="index">1.</span> <span class="param"> $sep </span></dt><dd> The sep.</dd></dl> </section><hr /> <section id="usage"><h2>Usage</h2><pre><ol><li><div>if ( !function_exists( '<span class="func">skt_black_wp_title</span>' ) ) { </div></li><li><div> require_once '/inc/extras.php'; </div></li><li><div>} </div></li><li><div>  </div></li><li><div><span class="comment">// The title.</span> </div></li><li><div><span class="param">$title</span> = null; </div></li><li><div>  </div></li><li><div><span class="comment">// The sep.</span> </div></li><li><div><span class="param">$sep</span> = null; </div></li><li><div>  </div></li><li><div><span class="comment">// NOTICE! Understand what this does before running.</span> </div></li><li><div><span class="param">$result</span> = <span class="func">skt_black_wp_title</span>(<span class="param">$title</span>, <span class="param">$sep</span>); </div></li><li><div>  </div></li></ol></pre></section><hr /> <section id="defined" class="source"><h2>Defined <span class="count">(1)</span></h2><p>The function is defined in the following location(s).</p><dl><dt><strong><a href="http://hookr.io/themes/skt-black/1.4.1/files/inc-extras/" class="file">/inc/extras.php <span> </span></a></strong></dt><dd><pre><ol data-line="26" class="block" start="50"><li><div>function skt_black_wp_title( $title, $sep ) { </div></li><li><div> global $page, $paged; </div></li><li><div> </div></li><li><div> if ( is_feed() ) </div></li><li><div> return $title; </div></li><li><div> </div></li><li><div> // Add the blog name </div></li><li><div> $title .= get_bloginfo( 'name' ); </div></li><li><div> </div></li><li><div> // Add the blog description for the home/front page. </div></li><li><div> $site_description = get_bloginfo( 'description', 'display' ); </div></li><li><div> if ( $site_description && ( is_home() || is_front_page() ) ) </div></li><li><div> $title .= " $sep $site_description"; </div></li><li><div> </div></li><li><div> // Add a page number if necessary: </div></li><li><div> if ( $paged >= 2 || $page >= 2 ) </div></li><li><div> $title .= " $sep " . sprintf( __( 'Page %s', 'skt-black' ), max( $paged, $page ) ); </div></li><li><div> </div></li><li><div> return $title; </div></li><li><div>} </div></li></ol></pre></dd></dl> </section> </article></div><div id="sidebar"><ul class="widgets"><li> <a href="http://hookr.io/plugin/"><img src="http://hookr.io/wp-content/themes/hookr/assets/images/plugin-download.jpg" /></a></li><li id="versions"><dl><dt>Version(s)</dt><dd><dl><dt>Since</dt><dd> 1.3.7</dd><dt>Others</dt><dd><ul><li><a href="http://hookr.io/themes/skt-black/1.4.1/functions/skt_black_wp_title/" class="active">1.4.1</a></li><li><a href="http://hookr.io/themes/skt-black/1.4.0/functions/skt_black_wp_title/" class="">1.4.0</a></li><li><a href="http://hookr.io/themes/skt-black/1.3.9/functions/skt_black_wp_title/" class="">1.3.9</a></li><li><a href="http://hookr.io/themes/skt-black/1.3.8/functions/skt_black_wp_title/" class="">1.3.8</a></li><li><a href="http://hookr.io/themes/skt-black/1.3.7/functions/skt_black_wp_title/" class="">1.3.7</a></li></ul></dd></dl></dd></dl></li><li id="tags"><dl><dt>Tags</dt><dd><ul><li><span></span>theme</li><li><span></span>function</li><li><span></span>skt_black_wp_title</li><li><span></span>SKT Black</li><li><span></span>1.4.1</li></ul></dd></dl></li></ul></div></div></div><script>Hookr.View.init();Hookr.Single.init();</script><footer><div><ul id="nav-social" class="pivot" role="navigation"><li id="twitter"><a href="http://twitter.com/hookr_io" title="Follow me!"></a></li></ul><div> © 2017 hookr.io <strong>(beta)</strong> | <a href="http://hookr.io/privacy/" title="Privacy">Privacy</a> | Proudly Powered by WordPress</div></div> </footer> <script type="text/javascript" src="http://hookr.io/wp-content/cache/minify/000000/M9EvL9BNzU1KTdHLzcwDAA.js"></script><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','UA-49583310-1','hookr.io');ga('send','pageview');</script></body></html>