Forums

Theme Updater
Adding extra theme headers (2 posts)

  1. Austin Passy
    Member
    Posted 11 months ago #

    Unfortunately Theme URI is not available via default get_theme_data(), which is probably for the best because I don't want to conflict with standard wordpress conventions.

    Couldn't you do:

    add_action( 'extra_theme_headers', 'frosty_extra_theme_headers' );
    function frosty_extra_theme_headers( $headers ) {
    	$headers['Github Theme URI'] = 'Github Theme URI';
    	return $headers;
    }

    Then you can call:

    $theme_data = get_theme_data( '/style.css' );
    $theme_data['Github Theme URI']

    http://wordpress.org/extend/plugins/theme-updater/

  2. Doug
    Member
    Posted 3 months ago #

    Sorry, I just saw post. Yes this absolutely works, I just didn't know about the extra_theme_headers filter. For anyone else's curiosity, here in the wp source is where the filter is applied.

Reply

You must log in to post.

About this Plugin

About this Topic