Skip to content
  • This project
    • Loading...
  • Sign in

MSF / msf-climate-hub

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • msf-climate-hub
  • ..
  • post
  • wpml-post-slug-translation-records.php
  • Jeff Balicki's avatar
    wpml · 5909f7bb ...
    5909f7bb
    Signed-off-by: Jeff <jeff@gotenzing.com>
    Jeff Balicki committed 2023-10-03 14:45:58 -0400
wpml-post-slug-translation-records.php 367 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

class WPML_Post_Slug_Translation_Records extends WPML_Slug_Translation_Records {

	const STRING_NAME = 'URL slug: %s';

	/**
	 * @param string $slug
	 *
	 * @return string
	 */
	protected function get_string_name( $slug ) {
		return sprintf( self::STRING_NAME, $slug );
	}

	/** @return string */
	protected function get_element_type() {
		return 'post';
	}
}