cp_dashboard_directory()
Display the ClassicPress Directory Inform users about the new ClassicPress directory and allow to install the ClassicPress Directory Integration plugin.
Source
File: wp-admin/includes/dashboard.php
function cp_dashboard_directory() {
?>
<div class ="directory-widget-content">
<p>
<?php
echo '<p>' . __( 'We would like to let you know about the ClassicPress Directory.' ) . '</p>';
echo '<p>' . sprintf( __( 'You can browse the new directory at <a href="%1$s" target="_blank">%1$s</a>.' ), esc_url( 'https://directory.classicpress.net' ) ) . '</p>';
$url = wp_nonce_url(
add_query_arg(
array(
'action' => 'install-plugin',
'plugin' => 'classicpress-directory-integration',
'from' => 'index',
),
self_admin_url( 'update.php' )
),
'install-plugin_' . 'classicpress-directory-integration'
);
echo '<p>' . sprintf( __( '<a href="%1$s">Install</a> the ClassicPress Directory Integration plugin to install plugins from the Plugins Menu.' ), $url ) . '</p>';
?>
</p>
</div>
<?php
}
Changelog
Version | Description |
---|---|
CP-2.1.0 | Introduced. CP-2.1.0 |