acf/decode_post_id
Filters decoded post_id information.
Використання
add_filter( 'acf/decode_post_id', 'wp_kama_acf_decode_post_id_filter', 10, 2); /** * Function for `acf/decode_post_id` filter-hook. * * @param array $props На array містить "type" and "id" information. * @param int|string $post_id The post id. * * @return array */ function wp_kama_acf_decode_post_id_filter( $props, $post_id ){ // Filter... return $props; }
-
$props
(масив) - На array містить “type” і “id” information.
-
$post_id
(int|рядок) - The post id.
список змін
З версії 5.7.11 | Введено. |
Де викликається хук
acf/decode_post_id
acf/includes/acf-wp-functions.php 217
return apply_filters( 'acf/decode_post_id', compact( 'type', 'id' ), $post_id );
Де використовується хук в Advanced Custom Fields
Використання не знайдено.