add_filter( ‘aioseo_local_business_post_type_plural_label’, ‘aioseo_change_local_business_post_type_plural_label’ ); function aioseo_change_local_business_post_type_plural_label( $label ) { $label = ‘Franchises’; return $label; }Continue reading
add_filter( ‘aioseo_import_yoast_seo_posts_per_action’, ‘aioseo_increase_yoast_posts_import’); function aioseo_increase_yoast_posts_import( $number ) { return 250; }Continue reading
add_filter( ‘aioseo_import_seopress_posts_per_action’, ‘aioseo_increase_seopress_posts_import’); function aioseo_increase_seopress_posts_import( $number ) { return 250; }Continue reading
add_filter( ‘aioseo_import_rank_math_posts_per_action’, ‘aioseo_increase_rank_math_posts_import’); function aioseo_increase_rank_math_posts_import( $number ) { return 250; }Continue reading
add_filter( ‘aioseo_disable_link_format’, ‘__return_true’ );Continue reading
add_filter(‘gform_notification_enable_cc’, ‘enable_cc’, 10, 3 ); function enable_cc( $enable, $notification, $form ){ return true; }Continue reading
// Remove plugin deactivation for all users except ‘rubberduckers’ function rubberduckers_disable_plugin_deactivation($actions, $plugin_file, $plugin_data, $context) { // Get the current user $current_user = wp_get_current_user(); // Check if the current user’s username is NOT ‘rubberduckers’ if ($current_user->user_login !== ‘rubberduckers’) { // List…Continue reading
// Show featured image in post list /* * * Add Featured Image Column to Admin Area and Quick Edit menu * Source: https://rudrastyh.com/wordpress/quick-edit-featured-image.html * */ /* * This action hook allows to add a new empty column */ add_filter(‘manage_resource_posts_columns’,…Continue reading
function modify_appearance_menu() { if (!current_user_can(‘administrator’)) { // Remove access to themes and customize for all users except administrators remove_submenu_page(‘themes.php’, ‘themes.php’); remove_submenu_page(‘themes.php’, ‘customize.php’); // Block access to /wp-admin/themes.php and /wp-admin/customize.php global $pagenow; $restricted_pages = array(‘themes.php’, ‘customize.php’); if (in_array($pagenow, $restricted_pages)) { wp_redirect(admin_url());…Continue reading
function enqueue_admin_reorder_scripts() { global $pagenow; // Ensure the script is not loaded on the plugins page if ($pagenow !== ‘plugins.php’) { wp_enqueue_script(‘jquery-ui-sortable’); wp_add_inline_script(‘jquery-ui-sortable’, ‘ jQuery(document).ready(function($) { var $sortableList = $(“#the-list”); var postType = $(“body”).attr(“class”).match(/post-type-([^\s]+)/)[1]; $sortableList.sortable({ update: function(event, ui) { var…Continue reading