Title: Get Author&#039;s Comments
Author: Mehdi Kabab
Published: <strong>डिसेंबर 9, 2008</strong>
Last modified: ऑगस्ट 2, 2009

---

प्लगइन शोधा

हे प्लगइन **WordPress च्या शेवटच्या 3 महत्त्वाच्या प्रमुख पुनर्वितरणांच्या साथी 
चाचणी झालेले नाही**. हे येथे वापरल्यास सामर्थ्य देणार नाही किंवा त्या आधारित असु
शकते आणि WordPress च्या अधिक अद्ययावत आवृत्तींसह वापरताना संगतता समस्यांची शक्यता
आहे.

![](https://s.w.org/plugins/geopattern-icon/get-authors-comments.svg)

# Get Author's Comments

 [Mehdi Kabab](https://profiles.wordpress.org/pioupioum/) कडून

[डाउनलोड करा](https://downloads.wordpress.org/plugin/get-authors-comments.1.1.0.zip)

 * [तपशील](https://mr.wordpress.org/plugins/get-authors-comments/#description)
 * [पुनरावलोकने](https://mr.wordpress.org/plugins/get-authors-comments/#reviews)
 *  [इंस्टॉलेशन](https://mr.wordpress.org/plugins/get-authors-comments/#installation)
 * [डेव्हलोपमेंट](https://mr.wordpress.org/plugins/get-authors-comments/#developers)

 [समर्थन](https://wordpress.org/support/plugin/get-authors-comments/)

## वर्णन

This plugin allows to display or retrieve comments posted by a user. In order to
avoid homonyms, a user is identified by his name and email(s).

**Note:** Get Author’s Comments uses the function [wp_list_comments](https://codex.wordpress.org/Template_Tags/wp_list_comments)
introduced by WordPress 2.7 for the (x)HTML output.

### Usage

#### Display all comments of a specific user in the current post

    ```
    <?php
        <ol>
            <?php ppm_author_comments('piouPiouM', 'foo@example.com'); ?>
        </ol>
    ?>
    ```

or, if _piouPiouM_ wrote with two different emails:

    ```
    <?php
        <ol>
            <?php ppm_author_comments('piouPiouM', array('foo@example.com', 'bar@example.org')); ?>
        </ol>
    ?>
    ```

#### Display all comments posted by a user

    ```
    <?php
        <ol>
            <?php ppm_author_comments('piouPiouM', 'foo@example.com', null, 'all=1'); ?>
        </ol>
    ?>
    ```

#### Display comments wrote by a user in the post of ID number 9

    ```
    <?php
        <ol>
            <?php ppm_author_comments('piouPiouM', 'foo@example.com', 9); ?>
        </ol>
    ?>
    ```

**Note:** If you used the tags `ppm_author_comments` or `ppm_get_author_comments`
whithin [The Loop](https://codex.wordpress.org/The_Loop), the parameter `$postID`
will be replaced automatically by the numeric ID of the current post.

#### Lastest comments ordered by post_ID

To show the last ten piouPiouM’s comments sorted by post_ID in ascending order, 
the following will display their comment date and excerpt:

    ```
    <?php
        $comments = ppm_get_author_comments('piouPiouM', 'foo@example.com', null, 'number=10&order=ASC&orderby=post_id');
        foreach ($comments as $comment):
    ?>
    <p><cite><?php comment_author_link() ?></cite> says:</p>
    <ol>
        <li>
            <p>Comment posted on <?php comment_date('n-j-Y'); ?>:<br/></p>
            <p><?php comment_excerpt(); ?></p>
        </li>
    </ol>
    <?php endforeach; ?>
    ```

#### Comments with a custom comment display

    ```
    <?php
        <ol>
            <?php ppm_author_comments('piouPiouM', 'info@example.com', null, 'callback=mytheme_comment'); ?>
        </ol>
    ?>
    ```

See [Comments Only With A Custom Comment Display](https://codex.wordpress.org/Template_Tags/wp_list_comments#Comments_Only_With_A_Custom_Comment_Display)
for an example of a custom callback function.

#### Show the total number of comments posted by a user on the site

    ```
    <?php
        get_currentuserinfo();
        $comments = ppm_get_author_comments($current_user->display_name, $current_user->user_email, null, 'all=1');
        printf('Hello ! <a href="/author/%s/">%s</a>! '
             . '[ <a href="%s" class="logout">Log Out</a> ]<br/>'
             . '%d posts and %d comments',
            $current_user->user_login,
            $current_user->display_name,
            wp_logout_url(),
            get_usernumposts($current_user->ID),
            count($comments));
    ?><h3>Parameters</h3>
    ```

**all**
 _(boolean)_ _(optional)_ Retrieve all comments. Default to _FALSE_.

**number**
 _(integer)_ _(optional)_ Number of comments to return. Default to _None_,
returns all comments.

**offset**
 _(integer)_ _(optional)_ Offset from latest comment. Default to 0.

**orderby**
 _(string)_ _(optional)_ Sort posts by one of various values (separated
by space), including:

 * `'comment_ID'` – Sort by numeric comment ID.
 * `'content'` – Sort by content.
 * `'date'` – Sort by creation date. (Default)
 * `'post_ID'` – Sort by post ID.
 * `'rand'` – Sort in random order.
 * `'status'` – Sort by status.
 * `'type'` – Sort by type.

**order**
 _(string)_ _(optional)_ Sort order, ascending or descending for the orderby
parameter. Valid values:

 * `'ASC'` – Ascending (lowest to highest).
 * `'DESC'` – Descending (highest to lowest). (Default)

**output**
 _(string)_ _(optional)_ How you’d like the result. Only for `ppm_get_author_comments`.

 * `OBJECT` – Returns an object. (Default)
 * `ARRAY_A` – Returns an associative array of field names to values.
 * `ARRAY_N` – Returns a numeric array of field values.
 * `HTML` – Returns a (x)HTML version generated by [wp_list_comments](https://codex.wordpress.org/Template_Tags/wp_list_comments).

**status**
 _(string)_ _(optional)_ The comments status. Default to hold and approve.
Valid values:

 * `'hold'` – Unapproved.
 * `'approve'` – Approved.
 * `'spam'` – Spam.

## स्थापना

Get Author’s Comments is installed in 3 easy steps:

 1. Upload `get_authors_comments.php` to the `/wp-content/plugins/` directory.
 2. Activate `Get Author's Comments` through the _Plugins_ menu in WordPress.
 3. Add in your theme:
 4.     ```
        <?php if (function_exist('ppm_author_comments')): ?>
            <ol>
                <?php ppm_author_comments('name', 'email', 'post_ID', 'args') ?>
            </ol>
        <?php endif ?>
        ```
    

## समीक्षा

ह्या प्लगइनसाठी कोणतेही समीक्षण नाही.

## योगदानकर्ते आणि विकसक

“Get Author's Comments” हे मुक्त स्रोत सॉफ्टवेअर आहे. पुढील लोक या प्लगइनच्या निर्मितीत
योगदान केले आहे.

योगदानकर्ते

 *   [ Mehdi Kabab ](https://profiles.wordpress.org/pioupioum/)

[भाषांतर करा “Get Author's Comments” तुमच्या भाषेत.](https://translate.wordpress.org/projects/wp-plugins/get-authors-comments)

### विकासातील आग्रह?

[कोड ब्राउझ करा](https://plugins.trac.wordpress.org/browser/get-authors-comments/),
[SVN संग्रहालय](https://plugins.svn.wordpress.org/get-authors-comments/) तपासा, 
किंवा [विकास लॉग](https://plugins.trac.wordpress.org/log/get-authors-comments/) 
च्या [RSS](https://plugins.trac.wordpress.org/log/get-authors-comments/?limit=100&mode=stop_on_copy&format=rss)
द्वारे सदस्यता घ्या.

## बदलांची यादी

#### 1.1.0

 * Support a new `all` argument for retrieves all comments posted by a user.
 * Add changelog and additional examples.

#### 1.0.1

 * The arguments are case insensitive.
 * Support of two new `orderby` arguments: `comment_ID` and `post_ID`.
 * Set default `orderby` argument to `date`.

#### 1.0.0

 * Initial release.

## मेटा

 *  आवृत्ती **1.1.0**
 *  शेवटचा अद्यतन **17 वर्षे पूर्वी**
 *  सक्रिय स्थापना **10+**
 *  वर्डप्रेस आवृत्ती ** 2.7 किंवा मोठा **
 *  परीक्षित केले आहे **2.9.2**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/get-authors-comments/)
 * टॅग्ज:
 * [author](https://mr.wordpress.org/plugins/tags/author/)[comment](https://mr.wordpress.org/plugins/tags/comment/)
   [comments](https://mr.wordpress.org/plugins/tags/comments/)[search](https://mr.wordpress.org/plugins/tags/search/)
 *  [प्रगत दृश्य](https://mr.wordpress.org/plugins/get-authors-comments/advanced/)

## मूल्यांकन

अजून कोणतीही पुनरावलोकने सबमिट केलेली नाहीत.

[Your review](https://wordpress.org/support/plugin/get-authors-comments/reviews/#new-post)

[सर्व पुनरावलोकने पहा](https://wordpress.org/support/plugin/get-authors-comments/reviews/)

## योगदानकर्ते

 *   [ Mehdi Kabab ](https://profiles.wordpress.org/pioupioum/)

## समर्थन

काहीतरी सांगायचं आहे का? मदतीची आवश्यकता आहे का?

 [समर्थन फोरम पहा](https://wordpress.org/support/plugin/get-authors-comments/)