• Development
  • Management
  • Case Studies
  • Testimonials
  • Get Started
  • Home
  • Development
  • Management
  • Testimonials
  • Case Studies
  • Get Started

Home / Plugins / Genesis Taxonomy Images / Filters

Filters

for Genesis Taxonomy Images, a WordPress plugin

There are several filters you can use to control and customize what the Genesis Taxonomy Images plugin does.

gtaxi_get_taxonomy_image_default_args

Allows modifications to the default arguments.

// Set the default options
$defaults = array(
	'format'   => 'html',
	'size'     => 'full',
	'attr'     => '',
	'fallback' => 'placeholder',
	'term'     => '',
);

/**
 * Filter the default options
 *
 * @since 0.8.0
 *
 * @param array $defaults The default options.
 */
$defaults = apply_filters( 'gtaxi_get_taxonomy_image_default_args', $defaults );

gtaxi_get_taxonomy_image

Filters the returned value before it’s returned.

/**
 * Filter the retrieved and calculated values
 *
 * @since 0.8.0
 *
 * @param string $output The requested image in the requested 'format'. Note: if not filtering, this is what is returned
 * @param string $args The arguments used
 * @param string $term_image_id The ID of the image
 * @param string $url The full url to the image
 */
return apply_filters( 'gtaxi_get_taxonomy_image', $output, $args, $term_image_id, $url );

gtaxi_get_taxonomies

Filters the taxonomies that the plugin will work with. Use this to enable only for specific taxonomies.

/**
 * gtaxi_get_taxonomies to filter the list of applicable taxonomies.
 *
 * By default, all public taxonomies that have a public UI are returned
 *
 * @since 0.8.1
 *
 * @param array array Results from get_taxonomies( array( 'show_ui' => true ) )
 */
return apply_filters( 'gtaxi_get_taxonomies', get_taxonomies( array( 'show_ui' => true ) ) );

gtaxi_get_placeholder_img_src

Allows you to set the default image instead of the built-in one.

/**
 * gtaxi_get_placeholder_img_src to filter the placeholder image.
 *
 * By default, uses a provided image
 *
 * @since 0.8.0
 *
 * @param string void URL to default image
 */
return apply_filters( 'gtaxi_get_placeholder_img_src', TIG_URL . $this->default_placeholder_img_src, TIG_BASENAME );

Request a Quote

Thanks for taking the time to learn about what we can do for you. When you’re ready, send us some brief information about you and your project. We’ll follow up with you and together we’ll develop a game plan.

Please do not put any passwords into this form. Once we’ve had a chance to speak we’ll arrange for a secure way to transmit all the info we’ll need.

Custom sites typically start at $4000.

Combined.3

Mike is a content strategist, designer and developer. With over 17 years of experience, he'll help plan and structure your web content, bringing it to life in a beautiful and effective design.

Quick Links

  • Web Design + Development
  • WordPress Site Management
  • My Plugins
hello@codenamemiked.com 613-866-7164

© 2003-2020 All Rights Reserved

© 2003- All Rights Reserved Site by <use xlink:href="/assets/cnmd-footer.svg#cnmd-logo-darker">