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

WP Simple Pay: Custom Decimal Separator

/** * @link https://library.wpcode.com/snippet/e500y359/ * * @param string $separator Decimal separator. * @return string */ function simpay_custom_decimal_separator( $separator ) { return ‘,’; } add_filter( ‘simpay_decimal_separator’, ‘simpay_custom_decimal_separator’ );Continue reading

WP Simple Pay: Remove Decimals

/** * @link https://library.wpcode.com/snippet/j57zqp2g/ */ add_filter( ‘simpay_decimal_places’, /** * @param int $places Number of decimal places. * @return int */ function( $places ) { return 0; } );Continue reading

Get Blog Info

/** * Function that returns a value from the get_bloginfo() function with a prefix, suffix, and separator. * * @param string $blog_info The blog info to be retrieved. Example: ‘name’, ‘description’, etc. * @param string $prefix The prefix to add…Continue reading