PHP code example of ooksanen / acf-focuspoint
1. Go to this page and download the library: Download ooksanen/acf-focuspoint library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ooksanen / acf-focuspoint example snippets
'image' => array(
'id' => 42,
'top' => 40.03,
'left' => 82.79,
)
$image = get_field('image');
$image_src = wp_get_attachment_image_src( $image['id'], 'large' );