0

I would like to change the default url edit.php to edit.php?category_name=photos when I click on "Articles".

Thanks

enter image description here

1 Answer 1

0

Probably the below code should help you.

function myadminurl() {
// generate url path to Posts -> Categories page in the admin and force http
$url = admin_url( 'edit-tags.php?taxonomy=category', 'http' );
echo $url;
}
add_action( 'init', 'myadminurl' );

Please refer this codex for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.