'detail', ) ); } add_filter( 'the_content', 'taxonomy_images_test_theme_append_the_term_images' ); add_filter( 'the_excerpt', 'taxonomy_images_test_theme_append_the_term_images' ); /** * Queried Term Image. * * Return html markup representing the image associated with the * currently queried term. In the event that no associated image * exists, the filter should return an empty object. * * In the event that the Taxonomy Images plugin is not installed * apply_filters() will return it's second parameter. */ /* Default */ $img = apply_filters( 'taxonomy-images-queried-term-image', 'PLEASE INSTALL PLUGIN' ); print '
' . htmlentities( $img ) . ''; /* Inside a yellow box */ $img = apply_filters( 'taxonomy-images-queried-term-image', 'PLEASE INSTALL PLUGIN', array( 'before' => '
' . htmlentities( $img ) . ''; /* Medium Size */ $img = apply_filters( 'taxonomy-images-queried-term-image', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'medium', ) ); print '
' . htmlentities( $img ) . ''; /* Unrecognized size */ $img = apply_filters( 'taxonomy-images-queried-term-image', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'this-is-probably-not-a-real-image-size', ) ); print '
' . htmlentities( $img ) . ''; /* Custom attributes. */ $img = apply_filters( 'taxonomy-images-queried-term-image', 'PLEASE INSTALL PLUGIN', array( 'attr' => array( 'alt' => 'Custom alternative text', 'class' => 'my-class-list bunnies turtles', 'src' => 'this-is-where-the-image-lives.png', 'title' => 'Custom Title', ), ) ); print '
' . htmlentities( $img ) . ''; /** * Queried Term Image ID. * * Return the id of the image associated with the currently * queried term. In the event that no associated image exists, * the filter should return zero. * * In the event that the Taxonomy Images plugin is not installed * apply_filters() will return it's second parameter. */ $img = apply_filters( 'taxonomy-images-queried-term-image-id', 'PLEASE INSTALL PLUGIN' ); print '
'; var_dump( $img ); print ''; /** * Queried Term Image Object. * * Return an object representing the image associated with the * currently queried term. In the event that no associated image * exists, the filter should return an empty object. * * In the event that the Taxonomy Images plugin is not installed * apply_filters() will return it's second parameter. */ $img = apply_filters( 'taxonomy-images-queried-term-image-object', 'PLEASE INSTALL PLUGIN' ); print '
'; var_dump( $img ); print ''; /** * Queried Term Image URL. * * Return a url to the image associated with the current queried * term. In the event that no associated image exists, the filter * should return an empty string. * * In the event that the Taxonomy Images plugin is not installed * apply_filters() will return it's second parameter. */ /* Default */ $img = apply_filters( 'taxonomy-images-queried-term-image-url', 'PLEASE INSTALL PLUGIN' ); print '
'; var_dump( $img ); print ''; /* Medium Size */ $img = apply_filters( 'taxonomy-images-queried-term-image-url', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'medium' ) ); print '
'; var_dump( $img ); print ''; /* Unregistered Size */ $img = apply_filters( 'taxonomy-images-queried-term-image-url', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'this-is-not-real-size-probably-I-hope' ) ); print '
'; var_dump( $img ); print ''; /** * Queried Term Image Data. * * Return an array of data about the image associated with the current * queried term. In the event that no associated image exists, the filter * should return an empty string. * * In the event that the Taxonomy Images plugin is not installed * apply_filters() will return it's second parameter. */ /* Default */ $img = apply_filters( 'taxonomy-images-queried-term-image-data', 'PLEASE INSTALL PLUGIN' ); print '
'; var_dump( $img ); print ''; /* Medium Size */ $img = apply_filters( 'taxonomy-images-queried-term-image-data', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'medium' ) ); print '
'; var_dump( $img ); print ''; /* Unregistered Size */ $img = apply_filters( 'taxonomy-images-queried-term-image-data', 'PLEASE INSTALL PLUGIN', array( 'image_size' => 'this-is-not-real-size-probably-I-hope' ) ); print '
'; var_dump( $img ); print '';