Food Type Taxonomy

// Register Custom Taxonomy function register_custom_foodtype() { $labels = array( ‘name’ => _x( ‘Food Types’, ‘Taxonomy General Name’, ‘text_domain’ ), ‘singular_name’ => _x( ‘Food Type’, ‘Taxonomy Singular Name’, ‘text_domain’ ), ‘menu_name’ => __( ‘Food Type’, ‘text_domain’ ), ‘all_items’ => __(…Continue reading

Change Editor Default Image Size

add_filter( ‘block_editor_settings_all’, function ( $settings, $context ) { // The default image size when added in the block editor. $settings[‘imageDefaultSize’] = ‘full’; return $settings; }, 10, 2 );Continue reading

Entry Forms

/** * Entry Automation Helper – With Column Loading Fix * Set to “Run Everywhere” in WPCode */ defined(‘ABSPATH’) || exit; add_action(‘admin_enqueue_scripts’, function($hook_suffix) { wp_enqueue_script(‘jquery’); $inline_js = 0) { var $actualSelect = $select2Container.prev(‘select’); if ($actualSelect.length === 0) { $actualSelect =…Continue reading

Add category to page

// Abilita categorie (e, opzionalmente, tag) per le Pagine add_action(‘init’, function () { register_taxonomy_for_object_type(‘category’, ‘page’); // categorie per le pagine // register_taxonomy_for_object_type(‘post_tag’, ‘page’); // opzionale: tag per le pagine });Continue reading

BikeYard Admin Notification System v1.0

/** * BikeYard Admin Notification System v1.0 * * Sends email notifications to admins for: * – New account registrations * – New bike listings * – Subscription changes * – Support requests * * Add as WPCode snippet: *…Continue reading