'translate-slugs', 'title' => __( 'Translate slugs', 'polylang' ), 'description' => __( 'Allows to translate custom post types and taxonomies slugs in urls.', 'polylang' ), ) ); } /** * tells if the module is active * * @since 1.9 * * @return bool */ public function is_active() { return class_exists( 'PLL_Translate_Slugs_Model', true ) && get_option( 'permalink_structure' ); } /** * displays upgrade message * * @since 1.9 * * @return string */ public function get_upgrade_message() { return class_exists( 'PLL_Translate_Slugs_Model', true ) ? '' : $this->default_upgrade_message(); } }