{"id":24511876,"url":"https://github.com/paulo-correia/wp_shortcode_user_pic","last_synced_at":"2026-05-12T16:02:32.706Z","repository":{"id":134106231,"uuid":"194951378","full_name":"paulo-correia/WP_Shortcode_User_Pic","owner":"paulo-correia","description":"WordPress Shotcode User Picture","archived":false,"fork":false,"pushed_at":"2019-07-03T00:16:49.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T00:42:34.578Z","etag":null,"topics":["php","wordpress","wordpress-shortcode"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulo-correia.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-03T00:15:47.000Z","updated_at":"2019-07-03T00:17:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ad21b61-76be-4844-948d-4136fefa4599","html_url":"https://github.com/paulo-correia/WP_Shortcode_User_Pic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FWP_Shortcode_User_Pic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FWP_Shortcode_User_Pic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FWP_Shortcode_User_Pic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulo-correia%2FWP_Shortcode_User_Pic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulo-correia","download_url":"https://codeload.github.com/paulo-correia/WP_Shortcode_User_Pic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713416,"owners_count":20335567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","wordpress","wordpress-shortcode"],"created_at":"2025-01-22T00:42:55.575Z","updated_at":"2026-05-12T16:02:27.657Z","avatar_url":"https://github.com/paulo-correia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003eShortcode para WordPress que exibe a foto do usuário\u003c/h2\u003e\n\nPara instalar entre no diretório onde está instalado o seu WordPress, localize a pasta wp-content e entre nela, dentro dela localize a pasta themes, dentro desta pasta estarão todos os temas que instalou, mas para instalar este shortcode tem que verificar no Painel/\"Dashboard\" do WordPress qual é o tema que está ativo.\n\nMas, vamos supor que o seu tema ativo é o Twenty Sixteen neste caso lozalize a pasta twentysixteen e entre nela.\n\nDentro desta pasta existirão vários arquivos, localize o arquivo functions.php e faça uma cópia dele com o nome functions.ori.\n\nUsando um Editor de sua preferência, no final deste arquivo adicione o código PHP abaixo:\n\n```\nfunction display_userpic() {\n\tif (is_user_logged_in()) {\n\t\t$current_user = wp_get_current_user();\n\t\t$id=$current_user-\u003eID;\n\t\treturn get_avatar($id, 0, 'userpic' );\n\t} \n}\nadd_shortcode('userpic','display_userpic');\n```\nSalve o arquivo e feche o editor.\n\nEm qualquer página ou post do wordpress adicione o shortcode [userpic], se o usuário tiver foto no seu perfil e estiver digitado o usuário e senha a foto dele será exibida na página ou post.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulo-correia%2Fwp_shortcode_user_pic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulo-correia%2Fwp_shortcode_user_pic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulo-correia%2Fwp_shortcode_user_pic/lists"}