skip to Main Content
< All Articles
Print

rem_attachments_title_length

This filter returns the number of characters for the attachment’s title to display.

Arguments

  1. Number of Characters [Integer]
  2. Property ID [Integer]
  3. Field’s Data [Array]

Example

Now if you want to increase the title’s length, you can use the following code.

You have to paste the following code inside the functions.php file of your active theme.

add_filter( 'rem_attachments_title_length', 'rem_change_attachment_title_length', 10, 1 );

function rem_change_attachment_title_length($length){
	return '30';
}
Quick Navigation
Back To Top