{"id":770,"date":"2021-10-08T12:42:38","date_gmt":"2021-10-08T12:42:38","guid":{"rendered":"https:\/\/mklasen.com\/?p=770"},"modified":"2021-10-08T12:42:38","modified_gmt":"2021-10-08T12:42:38","slug":"generate-a-plugin-install-link-in-wordpress","status":"publish","type":"post","link":"https:\/\/mklasen.com\/generate-a-plugin-install-link-in-wordpress\/","title":{"rendered":"Generate a plugin install link in WordPress"},"content":{"rendered":"\n
Below you’ll find a function that generates a plugin install link for WordPress. You can use this in the dashboard. This link acts the same way as the “Install plugin” buttons when searching for plugins within WordPress.<\/p>\n\n\n\n
Replace Below you’ll find a function that generates a plugin install link for WordPress. You can use this in the dashboard. This link acts the same way as the “Install plugin” buttons when searching for plugins within WordPress. $url = wp_nonce_url( self_admin_url( ‘update.php?action=install-plugin&plugin={plugin_slug}’ ), ‘install-plugin_{plugin_slug}’ ); Replace {plugin_slug} with the actual plugin slug, like ‘sympose’, ‘akismet’, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"acf":[],"yoast_head":"\n$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin={plugin_slug}' ), 'install-plugin_{plugin_slug}' );<\/code><\/p>\n\n\n\n
{plugin_slug}<\/code> with the actual plugin slug, like ‘sympose’, ‘akismet’, or ‘wordpress-seo’.<\/p>\n","protected":false},"excerpt":{"rendered":"