Archives: WordPress

Generating a WordPress plugin activation link url

21/04/2019 | By Dev | No Comments | Filed in: WordPress.

As I might need it again I’ve put together a gist for a WordPress function that will generate a plugin activation url like the ones WordPress will generate in the plugins administration screen The function will require a string input like my-plugin/my-plugin.php which can be hard-coded knowing a specific plugin folder and main plugin file information or using another function that will • Read More »

How to replace post name slug with post ID in Custom Post Types

10/04/2019 | By Dev | No Comments | Filed in: WordPress.

Here is a way to replace the post slug with the post ID in a custom post type permalink structure. Example. Change To Assuming the post type already exists with Refresh permalinks Refer