Name . ' ' . $theme_data->Version;
ob_start();
?>
### Begin Custom Post Type UI Debug Info ###
Multisite:
SITE_URL:
HOME_URL:
WordPress Version:
Permalink Structure:
Active Theme:
Registered Post Types:
PHP Version:
MySQL Version: db_version() . "\n"; ?>
Web Server Info:
Show On Front:
Page On Front:
Page For Posts:
WordPress Memory Limit: num_convt( WP_MEMORY_LIMIT ) / ( 1024 ) ) . 'MB'; ?>
$mu_plugin ) {
echo "\t\t" . $mu_plugin['Name'] . ': ' . $mu_plugin['Version'] . "\n";
}
endif;
// Standard plugins - active.
echo "\n";
$active = get_option( 'active_plugins', [] );
$ac_count = count( $active );
$ic_count = $pg_count - $ac_count;
echo "\t\t" . 'ACTIVE PLUGINS: (' . $ac_count . ')' . "\n\n";
foreach ( $plugins as $plugin_path => $plugin ) {
// If the plugin isn't active, don't show it.
if ( ! in_array( $plugin_path, $active ) ) {
continue;
}
echo "\t\t" . $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
}
// Standard plugins - inactive.
echo "\n";
echo "\t\t" , 'INACTIVE PLUGINS: (' . $ic_count . ')' . "\n\n";
foreach ( $plugins as $plugin_path => $plugin ) {
// If the plugin isn't active, show it here.
if ( in_array( $plugin_path, $active ) ) {
continue;
}
echo "\t\t" . $plugin['Name'] . ': ' . $plugin['Version'] . "\n";
}
// If multisite, grab network as well.
if ( is_multisite() ) :
$net_plugins = wp_get_active_network_plugins();
$net_active = get_site_option( 'active_sitewide_plugins', [] );
echo "\n";
echo 'NETWORK ACTIVE PLUGINS: (' . count( $net_plugins ) . ')' . "\n\n";
foreach ( $net_plugins as $plugin_path ) {
$plugin_base = plugin_basename( $plugin_path );
// If the plugin isn't active, don't show it.
if ( ! array_key_exists( $plugin_base, $net_active ) ) {
continue;
}
$plugin = get_plugin_data( $plugin_path );
echo $plugin['Name'] . ' :' . $plugin['Version'] . "\n";
}
endif;
echo "\n";
$cptui_post_types = cptui_get_post_type_data();
echo "\t\t" . 'Post Types: ' . "\n";
echo "\t\t" . json_encode( $cptui_post_types ) . "\n";
echo "\n\n";
$cptui_taxonomies = cptui_get_taxonomy_data();
echo "\t\t" . 'Taxonomies: ' . "\n";
echo "\t\t" . json_encode( $cptui_taxonomies ) . "\n";
echo "\n";
if ( has_action( 'cptui_custom_debug_info' ) ) {
echo "\t\t" . 'EXTRA DEBUG INFO';
}
/**
* Fires at the end of the debug info output.
*
* @since 1.3.0
*/
do_action( 'cptui_custom_debug_info' );
echo "\n";
?>
### End Debug Info ###
system_status();
/**
* Filters the debug email subject.
*
* @since 1.3.0
*
* @param string $value Intended email subject.
*/
$subject = apply_filters( 'cptui_debug_email_subject', sprintf(
// translators: Placeholder will hold site home_url.
__( 'Custom Post Type UI debug information for %s', 'custom-post-type-ui' ),
home_url( '/' )
) );
$result = wp_mail( $args['email'], $subject, $message );
/**
* Fires after the debug email has been sent.
*
* @since 1.3.0
*/
do_action( 'cptui_after_debug_email_sent' );
return $result;
}
}