Allow users to give a dashboard widget a custom name using ACF

add_action( ‘wp_dashboard_setup’, ‘feed_dashboard_add_widgets’ ); function feed_dashboard_add_widgets() { $title = __( ‘My title’, ‘textdomain’ ); //by default title // if ACF is activated (prevent fatal) end your field not empty, define a new $title if ( function_exists( ‘get_field’ ) && ! empty( get_field(‘my_widget_name’ ) ){ $title = get_field(‘my_widget_name’ ); } wp_add_dashboard_widget( ‘dw_dashboard_widget_feed’, $title, ‘my_cool_widget’); }

Add checkbox in admin post list – show checked post in widget

To get you started: <?php /* Plugin Name: The Checkbox Plugin Plugin URI: https://www.yourawesomedomain.de/plugins/ Description: A plugin with a checkbox to mark posts. Version: 0.0.1 Author: bjovaar Author URI: https://www.bjovaar.maybe/ License: GPL2 License URI: https://www.bjovaar.de/disclaimer Text Domain: bjovaar Domain Path: /languages */ if(!defined(‘ABSPATH’)) { exit(‘No access’); } // This path variable can be used for … Read more

Move position in post list for a custom checkbox column

Quoting from https://www.isitwp.com/change-wordpress-admin-post-columns-order/ All you have to do is add this code to your theme’s functions.php file or in a site-specific plugin: add_filter(‘manage_posts_columns’, ‘column_order’); function column_order($columns) { $n_columns = array(); $move=”author”; // what to move $before=”title”; // move before this foreach($columns as $key => $value) { if ($key==$before){ $n_columns[$move] = $move; } $n_columns[$key] = $value; … Read more