ACF: Author

// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading

FC – Disable blogging

add_action(‘init’, function () { global $wp_post_types; if (isset($wp_post_types[‘post’])) { $wp_post_types[‘post’]->capabilities = []; $wp_post_types[‘post’]->map_meta_cap = false; } register_taxonomy(‘post_category’, []); register_taxonomy(‘post_tag’, []); }); add_action(‘widgets_init’, function () { unregister_widget(‘WP_Widget_Recent_Posts’); }); add_action(‘admin_bar_menu’, function ($wp_admin_bar) { //$wp_admin_bar->remove_node(‘new-post’); }, 999); add_action(‘admin_menu’, function () { remove_menu_page(‘edit.php’); remove_submenu_page(‘edit.php’,…Continue reading

FC – Disable comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading