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; }
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 }