Documentation > Developers > Filter Examples > Disable Random Slug

Disable Random Slug

/**
 * Disable random slug generatin for picu collections
 *
 * picu will then use the collection title to generate the slug, which is the WordPress default.
 */

add_filters( 'picu_collection_do_random_slug', '__return_false' );Code language: PHP (php)

Need help?

If you couldn’t find what you were looking for and need more assistance, please get in touch with us directly and we’re happy to help.