This is a place where you can quickly reference elements from wp-admin.
You can use them in your own plugins.
-
How to Include Custom Post Types in WordPress Search Results
WP-Admin Reference
How to Initialize WordPress environment to use in command line script
How to run a script via command Line In wordpress
Here is the php function to determine wordpress base path in wordpress
Download image from remote URL and upload to WordPress media library
How to remove base url prepended to remote image url in wordpress