Pagelines welcome features

[edit] Please Note

These docs are now deprecated, we have a new Support area located here

(Difference between revisions)
(Created page with "__NOTOC__ == Filter == <tt>pagelines_welcome_features</tt> is used by get_welcome_features to return an array of the theme features on the theme Welcome page. == Usage ==...")
 
(Usage)
Line 19: Line 19:
 
}
 
}
 
?></syntaxhighlight>
 
?></syntaxhighlight>
 +
 +
NB: <tt>my_pagelines_welcome_features</tt>is an example name, please use a more appropriately named function in your code. Also to note, 'my-textdomain' should be the same textdomain you are using for your theme.

Revision as of 18:17, 8 April 2012

Filter

pagelines_welcome_features is used by get_welcome_features to return an array of the theme features on the theme Welcome page.

Usage

 array(
          'name'  => __( 'My First Feature', 'my-textdomain' ),
          'desc'  => __( 'This the description for My First Feature', 'my-textdomain' ),
          'class' => __( 'feature_dynamic' ), /* CSS class - borrowed for example purposes */
          'icon'  => '',
      ),
  );
  return $my_features;
}
?>

NB: my_pagelines_welcome_featuresis an example name, please use a more appropriately named function in your code. Also to note, 'my-textdomain' should be the same textdomain you are using for your theme.