Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: Checking user capabilities

    Hi there,

    such an function would be really good.

    Until something will be integrated you could use something like that, to check the rights of the logged in user and show him the edit-link of a post with a certain ID:

    <?php
    if (current_user_can('edit_post', $post->ID)) {
    echo "&middot; <a href='" . get_bloginfo('wpurl') . "/wp-admin/post.php?action=edit&post={$post->ID}' class='edit'>" . "edit</a>";
    }
    ?>

    Hi,

    I would also appreciate a way of revisioning all/certain custom fields, as custom fields do a great job in extending the cms possibilities of WordPress and are gettinge more and more used with plugins like “custom field templates”, “flutter” and so on.

    Finding the need to go back some revisions in an post/page but not getting back the older version of your custom field values is disappointing.

    How could revisioning of all/some custom fields be done?

Viewing 2 replies - 1 through 2 (of 2 total)