[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fde-kQGpjLq161G4XRA2Vc2hx9Q-F5Z-6fXItRRu8-wc":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"garinungkadol","Vicky Arulsingam","https:\u002F\u002Fprofiles.wordpress.org\u002Fgarinungkadol\u002F",1,100,85,30,84,"2026-04-04T23:33:25.756Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":8,"num_ratings":7,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":24,"tags":25,"homepage":31,"download_link":32,"security_score":9,"vuln_count":33,"unpatched_count":33,"last_vuln_date":34,"fetched_at":35},"post-avatar","Post Avatar","1.6.0","\u003Cp>Allow authors to select an image from a pre-defined list while in the Post Editor screen. This image will be displayed together with a post.\u003C\u002Fp>\n\u003Cp>Post Avatar is similar in concept to Livejournal userpics wherein authors choose images uploaded by the site owner. Developed with Dominik Menke.\u003C\u002Fp>\n\u003Ch4>Features\u003C\u002Fh4>\n\u003Cul>\n\u003Cli>Easy selection of images from within the Post Editor screen.\u003C\u002Fli>\n\u003Cli>Scans images in sub-directories of the image option folder.\u003C\u002Fli>\n\u003Cli>Allows the following file types: .jpg, .jpeg, .gif and .png.\u003C\u002Fli>\n\u003Cli>Flexible with customizing avatar display.\n\u003Cul>\n\u003Cli>Display avatars using the default HTML\u002FCSS tags.\u003C\u002Fli>\n\u003Cli>HTML\u002FCSS tags can be edited from with the Settings screen.\u003C\u002Fli>\n\u003Cli>Use template tags and custom filters within themes for advanced customization.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>International language support for Belorussian, Czech, Dutch, French, German, Hindi, Irish, Italian, Polish, Romanian, Serbo-Croatian, Spanish\u003C\u002Fli>\n\u003Cli>Does not display missing images.\u003C\u002Fli>\n\u003Cli>Can be further extended to show images for pages and custom post types\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4>Bug Submission and Forum Support\u003C\u002Fh4>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fsupport\u002Fplugin\u002Fpost-avatar\u002F\" rel=\"ugc\">WordPress Forum\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"http:\u002F\u002Fgarinungkadol.com\u002Fplugins\u002Fpost-avatar\u002Fsupport\u002F\" rel=\"nofollow ugc\">Post Avatar home page\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch4>Please Vote and Review\u003C\u002Fh4>\n\u003Cp>Your votes and feedback are greatly appreciated. Thanks.\u003C\u002Fp>\n\u003Ch3>Advanced Customization\u003C\u002Fh3>\n\u003Ch4>For Front End Display\u003C\u002Fh4>\n\u003Cp>By default, the plugin hooks into the following filters:  \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FPlugin_API\u002FFilter_Reference\u002Fthe_content\" rel=\"nofollow ugc\">the_content()\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FPlugin_API\u002FFilter_Reference\u002Fthe_content\" rel=\"nofollow ugc\">the_excerpt()\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>OVERRIDE HTML DISPLAY USING FILTER HOOK: gklpa_the_postavatar\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>The \u003Ccode>gklpa_the_postavatar\u003C\u002Fcode> filter takes two parameters:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\n\u003Cp>\u003Ccode>$post_avatar_text\u003C\u002Fcode> – Original HTML display\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>$post_avatar\u003C\u002Fcode> – Post Avatar data in array format. The keys are:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>avatar_url: The URL to the image        \nshow_image_dim: 1 indicates to show image dimensions, 0 to hide them                \nimage_height: integer value of image height or null if image dimensions is turned off               \nimage_width: integer value of image width or null if image dimensions is turned off             \npost_id: ID of current post             \npost_title: Post title for the image attribute              \nimage_name: Image file name\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Example: Display a default image if no avatar is selected\u003C\u002Fp>\n\u003Cp>This example makes use of the HTML\u002FCSS settings defined by the site admin.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    add_filter( 'gklpa_the_postavatar', 'prefix_show_default_image', 10, 2 );\n    function prefix_show_default_image( $post_avatar_html, $post_avatar_array ){\n        global $post, $gklpa_plugin_settings;\n\n        \u002F\u002F Display default image;\n        if( is_null( $post_avatar_array ) ){\n            if( !empty( $gklpa_plugin_settings['css_class'] ) {\n                $css = 'class=\"' . $gkl_plugin_settings['css_class']. '\"';\n            }\n            $post_avatar_html = $gklpa_plugin_settings['html_before' ] . '\u003Cimg '. $css . ' src=\"http:\u002F\u002Fwplatest.dev\u002Fimages\u002Fdefault-image.jpg\" alt=\"' . esc_attr(strip_tags($post->post_title) ) . '\" \u002F>'. $gklpa_plugin_settings['html_after'];\n        }\n        return $post_avatar_html;\n    }\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>OVERRIDE HTML DISPLAY WITH CUSTOM CONTENT HOOK\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>If you want to change the HTML completely or override the option to display avatars automatically, use the \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FFunction_Reference\u002Fremove_filter\" rel=\"nofollow ugc\">remove_filter()\u003C\u002Fa> like so:\u003Cbr \u002F>\n    remove_filter(‘the_content’, ‘gkl_postavatar_filter’, 99 );\u003Cbr \u002F>\n    remove_filter(‘the_excerpt’, ‘gkl_postavatar_filter’, 99 );\u003C\u002Fp>\n\u003Cp>You can then define your own \u003Ccode>the_content\u003C\u002Fcode> filter function that makes use of the \u003Ccode>gkl_postavatar()\u003C\u002Fcode> or \u003Ccode>gkl_get_postavatar()\u003C\u002Fcode> functions\u003C\u002Fp>\n\u003Cp>You will need to use the function \u003Ccode>gkl_get_postavatar()\u003C\u002Fcode> which takes the post object and returns the array of post avatar information.\u003C\u002Fp>\n\u003Col>\n\u003Cli>\n\u003Cp>\u003Ccode>$post_avatar_array\u003C\u002Fcode> – Post Avatar data in array format. The keys are:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>avatar_url: The URL to the image\n\nshow_image_dim: 1 indicates to show image dimensions, 0 to hide them\n\nimage_height: integer value of image height or null if image dimensions is turned off\n\nimage_width: integer value of image width or null if image dimensions is turned off\n\npost_id: ID of current post\n\npost_title: Post title for the image attribute\n\nimage_name: Image file name\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Example:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    add_filter( 'the_content', 'my_custom_post_avatar' );\n    function my_custom_post_avatar( $content ){\n        global $post;\n\n        $current_avatar = gkl_get_postavatar( $post );\n        $html_before = '\u003Cspan class=\"alignleft\">';\n        $html_after = '\u003C\u002Fspan>';\n        \u002F\u002F Display default image\n        if( is_null( $current_avatar ) ) {\n            $image_url = 'http:\u002F\u002Fwplatest.dev\u002Fimages\u002Fdefault-image.jpg';\n            $alt_text = esc_attr(strip_tags($post->post_title) );\n        } else {\n            $image_url = $current_avatar['avatar_url'];\n            $alt_text = $current_avatar['post_title'];\n        }\n        $post_avatar_html = $html_before . '\u003Cimg src=\"'. $image_url . '\" alt=\"' . $alt_text . '\" \u002F>'. $html_after;\n\n        return $post_avatar_html;   \n    }\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>OVERRIDE HTML DISPLAY WITH template tag \u003Ccode>gkl_postavatar\u003C\u002Fcode>\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>If you want the post avatar to appear outside of the content, e.g. with the entry’s meta information, make use of the \u003Ccode>gkl_postavatar()\u003C\u002Fcode> template tag.\u003C\u002Fp>\n\u003Cp>It takes four paramters:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    class: CSS class to use in the `\u003Cimg>` tag. \n    before: HTML to appear before the image.    \n    after: HTML to appear after the image.  \n    do_what: Use `echo` to display the post avatar, `return` to pass it to a variable. Defaults to `echo`.\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Example: In a template file:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    \u003Cdiv class=\"entry-meta\">    \n    \u003C?php gkl_postavatar('', \"\u003Cspan class='alignleft'>\", \"\u003Cspan>\" );?>\n\n    -- more template tags here --\n    \u003C\u002Fdiv>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Or you can make your own template tag function like in the example for “Override HTML display with custom content hook”, except you call the function directly in your template instead of hooking into \u003Ccode>the_content()\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Ch4>For Administration Screens\u003C\u002Fh4>\n\u003Cp>\u003Cstrong>Add Post Avatar to Pages and Custom Post Types\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Use the filter hook \u003Ccode>gklpa_allowed_post_types\u003C\u002Fcode> to add further post types that you want the Post Avatar selection to appear on.\u003C\u002Fp>\n\u003Cp>It takes an array of post type slugs as a parameter.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    add_filter( 'gklpa_allowed_post_types', 'prefix_my_custom_post_types' );\n    function prefix_my_custom_post_types( $current_post_types ){\n        $current_post_types = array( 'post', 'page', 'review', 'event' );\n        return $current_post_types;\n    }\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Enable Image Selection for Folder Outside of WordPress Installation\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>By default, Post Avatar looks for your images folder in relation to your WordPress installation. If you want to move your folder elsewhere, use these pair of filter hooks: \u003Ccode>gklpa_image_url\u003C\u002Fcode> and \u003Ccode>gklpa_image_dir\u003C\u002Fcode>. They take a single parameter: Image folder url and absolute path to the image folder, respectively.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    add_filter( 'gklpa_image_url', 'prefix_change_folder_url' );\n    function prefix_change_folder_url( $current_url ){\n        return esc_url( 'http:\u002F\u002Fmysite.com\u002Fimages\u002F' );\n    }\n\n    add_filter( 'gklpa_image_dir', 'prefix_change_folder_dir' );\n    function prefix_change_folder_dir ){\n        return '\u002Fuser\u002Fpublic_html\u002Fimages\u002F';\n    }\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Please visit the \u003Ca href=\"http:\u002F\u002Fwww.garinungkadol.com\u002Fplugins\u002Fpost-avatar\u002F\" rel=\"nofollow ugc\">Post Avatar Page\u003C\u002Fa> for details on customizing the avatar display.\u003C\u002Fp>\n\u003Ch4>Translations\u003C\u002Fh4>\n\u003Cp>Post Avatar is translation-ready and supports a number of languages. If you can’t find your language here, please consider contributing a language pack.\u003C\u002Fp>\n\u003Cp>If you’re interested, please check out the \u003Ca href=\"https:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fcodestyling-localization\u002F\" rel=\"ugc\">“Codestyling Localization” plugin\u003C\u002Fa> and for validating the \u003Ca href=\"http:\u002F\u002Fwww.poedit.net\u002F\" rel=\"nofollow ugc\">“Poedit Editor”\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>Send in your translations to vix@garinungkadol.com\u003C\u002Fp>\n\u003Cp>Thanks to the following for their language packs.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Belorussian (ru_RU) Fat Cower\u003C\u002Fli>\n\u003Cli>Czech (cz_CZ) Lelkoun\u003C\u002Fli>\n\u003Cli>Dutch (nl_NL) Jay August\u003C\u002Fli>\n\u003Cli>French (fr_FR) Mathieu Haratyk\u003C\u002Fli>\n\u003Cli>German (de_DE) Dominik Menke\u003C\u002Fli>\n\u003Cli>Hindi (hi_IN_Hindi) Outshine Solutions \u003C\u002Fli>\n\u003Cli>Irish (ga_IR) Ray S.\u003C\u002Fli>\n\u003Cli>Italian (it_IT) Gianni Diurno\u003C\u002Fli>\n\u003Cli>Polish (pl_PL) Meloniq\u003C\u002Fli>\n\u003Cli>Romanian (ro_RO) Webhosting Geeks\u003C\u002Fli>\n\u003Cli>Serbo-Croatian (sr_RS) Webhosting Hub\u003C\u002Fli>\n\u003Cli>Spanish (es_ES) gogollack\u003C\u002Fli>\n\u003C\u002Ful>\n","Choose an avatar from a pre-defined list to include in a post.",87996,"2018-08-23T07:59:00.000Z","4.9.29","3.9","5.6.3",[26,27,28,29,30],"avatars","image","images","post","thumbnail","http:\u002F\u002Fwww.garinungkadol.com\u002Fplugins\u002Fpost-avatar\u002F","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fpost-avatar.1.6.0.zip",0,null,"2026-03-15T15:16:48.613Z"]