예제 #1
0
파일: MetaBox.php 프로젝트: kmvan/poiauthor
 public function dynamicConfAdmin(array $conf)
 {
     if (Other::getCurrentScreen()->base !== 'post') {
         return $conf;
     }
     global $post;
     $conf[static::getOptID()] = ['id' => Functions::buildActionName(static::getOptID()), 'lang' => ['typeAuthorNameForSearch' => L10n::__('Type author name for search'), 'authorId' => L10n::__('Author ID')], 'postId' => $post->ID, 'authorId' => $post->post_author, 'authorName' => User::getTheAuthorMeta('display_name', $post->post_author)];
     return $conf;
 }
예제 #2
0
파일: Filter.php 프로젝트: kmvan/poiauthor
 public function filterWpDropdownUsers($html)
 {
     if (Other::getCurrentScreen()->base !== 'edit') {
         return $html;
     }
     ?>
     <select style="display:none;" class="authors poiauthor-author-id" name="post_author"></select>
     <?php 
 }