acf/connect_attachment_to_post
Filters, які або не підключаються до адаптації.
Використання
add_filter( 'acf/connect_attachment_to_post', 'wp_kama_acf_connect_attachment_to_post_filter', 10, 3); /** * Function for `acf/connect_attachment_to_post` filter-hook. * * @param bool $bool Відновити false буде вирішувати зв'язок. * @param int $attachment_id The attachment ID. * @param int $post_id The post ID. * * @return bool */ function wp_kama_acf_connect_attachment_to_post_filter( $bool, $attachment_id, $post_id ){ // Filter... return $bool; }
-
$bool
(true|false) -
Відновлення false буде запобігати з’єднанню.
Типово: true -
$attachment_id
(int) - Підприємство ID.
-
$post_id
(int) - Post ID.
список змін
З версії 5.8.0 | Введено. |
Де викликається хук
acf/connect_attachment_to_post
Де використовується хук в Advanced Custom Fields
Використання не знайдено.