<commit_before><?php
/**
 * This file handles the admin area and functions.
 * You can use this file to make changes to the
 * dashboard. It's turned off by default, but you
 * can call it via the functions file.
 *
 *		1 Remove default dashboard wigets
 *		2 Custom dashboard widgets
 *		3 Customizing the Login Page
 *		4 changing text in footer of admin
 *
 * Recommended Reading:
 * http://digwp.com/2010/10/customize-wordpress-dashboard/
 */


/**
 * 1 REMOVE DEFAULT DASHBOARD WIDGETS
 * ************************************************************
 *
 * Comment/Uncomment the ones you want to maintain/remove
 */

function disable_default_dashboard_widgets() {

	remove_meta_box( 'dashboard_right_now', 'dashboard', 'core' );			// Right Now Widget
	remove_meta_box( 'dashboard_activity', 'dashboard', 'core' );			// Activity widget
	remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'core' );	// Comments Widget
	//remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'core' );	// Incoming Links Widget
	//remove_meta_box( 'dashboard_plugins', 'dashboard', 'core' );			// Plugins Widget
	remove_meta_box( 'dashboard_quick_press', 'dashboard', 'core' );		// Quick Press Widget
	remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'core' );		// Recent Drafts Widget
	remove_meta_box( 'dashboard_primary', 'dashboard', 'core' );	// WordPress News
	remove_meta_box( 'dashboard_secondary', 'dashboard', 'core' );// 

	// Plugins' dashboard boxes
	remove_meta_box( 'yoast_db_widget', 'dashboard', 'normal' );			// Yoast's SEO
	remove_meta_box( 'icl_dashboard_widget', 'dashboard', 'normal' );		// WPML
	remove_meta_box( 'blc_dashboard_widget', 'dashboard', 'normal' );		// Broken Link Checker
}
add_action( 'admin_menu', 'disable_default_dashboard_widgets' );



/**
 * 2 CUSTOM WIDGETS
 * ************************************************************
 *
 * Now let's talk about adding your own custom Dashboard widget.
 * Sometimes you want to show clients feeds relative to their
 * site's content. For example, the NBA.com feed for a sports
 * site. Here is an example Dashboard Widget that displays recent
 * entries from an RSS Feed.
 *
 * Recommended reading:
 * http://digwp.com/2010/10/customize-wordpress-dashboard/
 * 
 */

// Example Dashboard Widget
function osea_example_dashboard_widget() {
	?>
	<h1> </h1>
	<p>You can edit this message in /lib/admin.php and add your own widgets</p>
	<?php
}

/**
 * Drop here all the Custom Widgets to load them
 */
function osea_custom_dashboard_widgets() {
	wp_add_dashboard_widget( 'osea_example_dashboard_widget', __( 'Example Dashboard Widget (Ósea)', 'osea-theme' ), 'osea_example_dashboard_widget' );

}
add_action( 'wp_dashboard_setup', 'osea_custom_dashboard_widgets' );


/**
 * 3 CUSTOM LOGIN PAGE<commit_msg>improved example dashboard widget text<commit_after><?php
/**
 * This file handles the admin area and functions.
 * You can use this file to make changes to the
 * dashboard. It's turned off by default, but you
 * can call it via the functions file.
 *
 *		1 Remove default dashboard wigets
 *		2 Custom dashboard widgets
 *		3 Customizing the Login Page
 *		4 changing text in footer of admin
 *
 * Recommended Reading:
 * http://digwp.com/2010/10/customize-wordpress-dashboard/
 */


/**
 * 1 REMOVE DEFAULT DASHBOARD WIDGETS
 * ************************************************************
 *
 * Comment/Uncomment the ones you want to maintain/remove
 */

function disable_default_dashboard_widgets() {

	remove_meta_box( 'dashboard_right_now', 'dashboard', 'core' );			// Right Now Widget
	remove_meta_box( 'dashboard_activity', 'dashboard', 'core' );			// Activity widget
	remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'core' );	// Comments Widget
	//remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'core' );	// Incoming Links Widget
	//remove_meta_box( 'dashboard_plugins', 'dashboard', 'core' );			// Plugins Widget
	remove_meta_box( 'dashboard_quick_press', 'dashboard', 'core' );		// Quick Press Widget
	remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'core' );		// Recent Drafts Widget
	remove_meta_box( 'dashboard_primary', 'dashboard', 'core' );	// WordPress News
	remove_meta_box( 'dashboard_secondary', 'dashboard', 'core' );// 

	// Plugins' dashboard boxes
	remove_meta_box( 'yoast_db_widget', 'dashboard', 'normal' );			// Yoast's SEO
	remove_meta_box( 'icl_dashboard_widget', 'dashboard', 'normal' );		// WPML
	remove_meta_box( 'blc_dashboard_widget', 'dashboard', 'normal' );		// Broken Link Checker
}
add_action( 'admin_menu', 'disable_default_dashboard_widgets' );



/**
 * 2 CUSTOM WIDGETS
 * ************************************************************
 *
 * Now let's talk about adding your own custom Dashboard widget.
 * Sometimes you want to show clients feeds relative to their
 * site's content. For example, the NBA.com feed for a sports
 * site. Here is an example Dashboard Widget that displays recent
 * entries from an RSS Feed.
 *
 * Recommended reading:
 * http://digwp.com/2010/10/customize-wordpress-dashboard/
 * 
 */

// Example Dashboard Widget
function osea_example_dashboard_widget() {
	?>
	<h1> </h1>
	<p>You can edit this message in /lib/admin.php and add your own widgets, and restore the disabled defaults.</p>
	<?php
}

/**
 * Drop here all the Custom Widgets to load them
 */
function osea_custom_dashboard_widgets() {
	wp_add_dashboard_widget( 'osea_example_dashboard_widget', __( 'Example Dashboard Widget (Ósea)', 'osea-theme' ), 'osea_example_dashboard_widget' );

}
add_action( 'wp_dashboard_setup', 'osea_custom_dashboard_widgets' );


/**
 * 3 CUSTOM LOGIN PAGE
{'fraction_non_alphanumeric': 0.15824019868724498, 'fraction_numerical': 0.007450771687067589, 'mean_word_length': 4.758937691521961, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5060253', 'n_tokens_mistral': 1790, 'n_tokens_neox': 1781, 'n_words': 506}