bp_get_directory_title (字符串美元的组件''

获取组件的目录标题。

描述

用于元素和组件目录页上的页标头。> < / p > < /部分

参数

美元的组件

字符串(可选)组件获取目录标题。

默认值:“

返回

(字符串)

文件:bp-core / bp-core-template.php

函数bp_get_directory_title($component = ") {$title = ";//使用组件提供的字符串。如果(!Empty (buddypress()->{$component}->directory_title)) {$ title = buddypress()->{$component}->directory_title;//如果没有找到,连接。} elseif (isset(buddypress()->{$component}->name)) {$ title = sprintf(__('%s Directory', 'buddyboss'), buddypress()->{$component}->name);} /** *过滤组件的目录标题。* * @since BuddyPress 2.0.0 * * @param string $title文本用于标签。* @param string $component当前显示的组件。*/返回apply_filters('bp_get_directory_title', $title, $component); }</pre>
                </div>
                <p class="source-code-links"><span><a href="#" class="show-complete-source">展开全部源代码</a><a href="#" class="less-complete-source">折叠完整的源代码</a></span></p>
               </section>
               <section class="changelog">
                <h3 id="ref-changelog" class="ref-context">更新日志<span id="ref-changelog-link" class="ref-context-link"></span></h3>
                <table>
                 <caption class="screen-reader-text">
                  更新日志</caption>
                 <thead>
                  <tr>
                   <th class="changelog-version">版本</th>
                   <th class="changelog-desc">描述</th>
                  </tr>
                 </thead>
                 <tbody>
                  <tr>
                   <td><a href="//www.zdfhmy.com/resources/reference/since/buddypress.2.0.0/" alt="WordPress BuddyPress 2.0.0">BuddyPress 2.0.0</a></td>
                   <td>介绍了。</td>
                  </tr>
                 </tbody>
                </table>
               </section>
               <section class="related">
                <h2 id="ref-related" class="ref-context">相关的<span id="ref-related-link" class="ref-context-link"></span></h2>
                <article class="uses">
                 <h3>使用</h3>
                 <table id="uses-table">
                  <caption class="screen-reader-text">
                   使用</caption>
                  <thead>
                   <tr>
                    <th>使用</th>
                    <th class="related-desc">描述</th>
                   </tr>
                  </thead>
                  <tbody>
                   <tr>
                    <td><span>bp-loader.php:</span><a href="//www.zdfhmy.com/resources/reference/functions/buddypress/">buddypress ()</a></td>
                    <td class="related-desc"><p>主要的函数负责返回一个真正的BuddyBoss实例到所有的函数。</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-core / bp-core-template.php:</span><a href="//www.zdfhmy.com/resources/reference/hooks/bp_get_directory_title/">bp_get_directory_title</a></td>
                    <td class="related-desc"><p>过滤组件的目录标题。</p></td>
                   </tr>
                  </tbody>
                  <tbody></tbody>
                 </table>
                </article>
                <article class="used-by">
                 <table id="used-by-table">
                  <caption class="screen-reader-text">
                   所使用的</caption>
                  <thead>
                   <tr>
                    <th>所使用的</th>
                    <th class="related-desc">描述</th>
                   </tr>
                  </thead>
                  <tbody>
                   <tr>
                    <td><span>bp-document /类/ class-bp-document-theme-compat.php:</span><a href="//www.zdfhmy.com/resources/reference/classes/bp_document_theme_compat/directory_dummy_post/">BP_Document_Theme_Compat: directory_dummy_post ()</a></td>
                    <td class="related-desc"><p>用目录数据更新全局$post。</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-media /类/ class-bp-media-theme-compat.php:</span><a href="//www.zdfhmy.com/resources/reference/classes/bp_media_theme_compat/directory_dummy_post/">BP_Media_Theme_Compat: directory_dummy_post ()</a></td>
                    <td class="related-desc"><p>用目录数据更新全局$post。</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-groups /类/ class-bp-groups-theme-compat.php:</span><a href="//www.zdfhmy.com/resources/reference/classes/bp_groups_theme_compat/directory_dummy_post/">BP_Groups_Theme_Compat: directory_dummy_post ()</a></td>
                    <td class="related-desc"><p>用目录数据更新全局$post。</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-members /类/ class-bp-members-theme-compat.php:</span><a href="//www.zdfhmy.com/resources/reference/classes/bp_members_theme_compat/directory_dummy_post/">BP_Members_Theme_Compat: directory_dummy_post ()</a></td>
                    <td class="related-desc"><p>用目录数据更新全局$post。</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-core / bp-core-template.php:</span><a href="//www.zdfhmy.com/resources/reference/functions/bp_get_title_parts/">bp_get_title_parts ()</a></td>
                    <td class="related-desc"><p>获得BuddyPress显示页面的标题部分</p></td>
                   </tr>
                   <tr>
                    <td><span>bp-activity /类/ class-bp-activity-theme-compat.php:</span><a href="//www.zdfhmy.com/resources/reference/classes/bp_activity_theme_compat/directory_dummy_post/">BP_Activity_Theme_Compat: directory_dummy_post ()</a></td>
                    <td class="related-desc"><p>用目录数据更新全局$post。</p></td>
                   </tr>
                  </tbody>
                  <tbody></tbody>
                 </table>
                 <a href="#" class="show-more">显示1更多的使用</a>
                 <a href="#" class="hide-more">隐藏更多被使用</a>
                </article>
               </section>
               <section class="ref-feedback-wrap">
                <h3>问题吗?</h3>
                <p>我们总是很乐意帮助您解决代码或其他问题!搜索我们的<a href="//www.zdfhmy.com/resources/reference/">开发人员文档</a>,<a href="//www.zdfhmy.com/my-account/?tab=helpscouttickets">联络支持</a>,或与我们联系<a href="//www.zdfhmy.com/buddypress-developers/">销售团队</a>.</p>
               </section>
              </section>
             </div>
            </div>
           </div>
          </div>
         </article>
        </main>
        <!-- #main -->
       </div>
       <!-- #primary -->
      </div>
      <!-- #primary -->
     </div>
     <!-- .bb-grid -->
    </div>
    <!-- .container -->
   </div>
   <!-- #content -->
   <footer class="footer-bottom bb-footer style-1">
    <div class="container flex">
     <div class="footer-bottom-left">
      <div class="copyright">
       ©2021</div>
     </div>
     <div class="footer-bottom-right push-right"></div>
    </div>
   </footer>
  </div>
  <!-- #page -->
 <div style="text-align:center;margin-bottom:5px;"><form action="http://www.baidu.com/baidu" target="_blank"><div bgcolor="#FFFFFF" style="text-align:center;"><input name="tn" type="hidden" value="baidu"><a href="http://www.baidu.com/"><img src="http://img.baidu.com/img/logo-80px.gif" width="80px" height="29px" alt="Baidu" align="bottom" border="0"></a><input type="text" name="word" size="30" placeholder="" value=""><input type="submit" value="百度搜索"></div></form></div><div id="so360" style="text-align:center;margin-bottom:5px;"><form action="https://www.so.com/" target="_blank" id="so360form"><img src="http://p1.qhimg.com/d/_onebox/search.png" width="100px" height="25px"> <input type="text" autocomplete="off" name="q" id="so360_keyword" placeholder="" value="">  <input type="submit" id="so360_submit" value="360搜索"> <input type="hidden" name="ie" value="gbk"><input type="hidden" name="src" value="zz"> <input type="hidden" name="site" value="so.com"> <input type="hidden" name="rg" value="1"></form></div><div id="sogou" style="text-align:center;margin-bottom:5px;"><form action="https://www.sogou.com/" target="_blank" id="so360form"><img src="https://www.sogou.com/web/index/images/logo_440x140.v.4.png" width="100px" height="25px"> <input type="text" autocomplete="off" name="q" id="sogou.com_keyword" placeholder="" value="">  <input type="submit" id="sogou_submit" value="搜 狗"> <input type="hidden" name="ie" value="gbk"><input type="hidden" name="src" value="zz"> <input type="hidden" name="site" value="so.com"> <input type="hidden" name="rg" value="1"></form></div></body>
</html>