📜  自定义库 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:11.506000             🧑  作者: Mango

代码示例1
function pstretch_foogallery_allowed_post_types_for_attachment( $post_types ) {
  $post_types[] = 'news';
  $post_types[] = 'events';
  return $post_types;
}
add_filter( 'foogallery_allowed_post_types_for_attachment', 'pstretch_foogallery_allowed_post_types_for_attachment' );