Get back the post ID
-
Hi!
I would like to use the code below as a base.
add_filter( ‘frou_sanitize_file_name’, function($filename_infs){ $filename_infs[‘structure’][‘translation’][‘my_custom_rule’] = get_current_user_id(); return $filename_infs; }, 20 );
It doesn’t work:
$filename_infs[‘structure’][‘translation’][‘my_custom_rule’] = get_the_ID();
How do I get back the post ID (not the get_current_user_id)?
Bets regards,
Peter
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get back the post ID’ is closed to new replies.