Admin only taxonomies?

When registering the taxonomy just set public to false, and it’ won’t be accessible on the front end. Just make sure to specify show_ui to true, otherwise it will use the public value and be hidden. register_taxonomy( ‘my_taxonomy’, ‘product’, [ ‘public’ => false, ‘show_ui’ => true, ] ); If you’re registering the taxonomy with a … Read more

Admin back end – get URL of file using file browser

You can scan the directory for files with glob() then loop throw the results and list them in a admin modal (thickbox) or just show the list within a admin metabox in the post editor. Here’s a little snippet that i was playing with. /** * Get HTML Article Files from uploads/articles * Support both … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)