コード例 #1
0
 /**
  * @ticket 34010
  */
 public function test_get_post_types_by_support_non_existant_feature()
 {
     $this->assertEqualSets(array(), get_post_types_by_support('somefeature'));
 }
コード例 #2
0
ファイル: functions.php プロジェクト: stuttter/wp-user-alerts
/**
 * Return array of allowed post statuses
 *
 * @since 0.1.0
 *
 * @return array
 */
function wp_user_alerts_get_allowed_post_types()
{
    return get_post_types_by_support('alerts');
}