• Resolved shazdeh

    (@shazdeh)


    The default WP comes with some awesome features like ‘post-formats’ and ‘post-thumbnails’. When you declare that your theme supports these features you can add another parameter to define which areas of WP these will apply on. example: add_theme_support('post-formats',array('aside','gallery','link'));
    Now, I have added some other features in my theme and by using require_if_theme_supports load them in the WP. How can my registered theme_features accept parameter like the default post-thumbnails and ‘post-formats’ do?

Viewing 1 replies (of 1 total)
  • Thread Starter shazdeh

    (@shazdeh)

    Found it. use get_theme_support( $feature ) function which will return the parameter passed to add_theme_support.

Viewing 1 replies (of 1 total)
  • The topic ‘parameters for add_theme_support’ is closed to new replies.