As for such a code
/** * Wrap the default action HTML for .o2-resolve-link actions */ function wrap_post_action_html( $html, $action ) { if ( self::post_actions_key === $action[ 'action' ] && ! empty( $html ) ) { $html = "<span class='o2-resolve-wrap'>{$html}<ul></ul></span>"; } return $html; } You can prescribe a condition so that only the admin and authors of the post can see the button (but the main admin, because he is the only author)?