Support

Account

Home Forums ACF PRO Creation of a reading progress feature Reply To: Creation of a reading progress feature

  • Ok I managed to do it 🙂

    Using add_row after the form submission, here is the code:

    	add_action('acf/save_post', 'fs_sequence_progress');
    	function fs_sequence_progress( $post_id ) {
    		
    		if ( ! is_admin() ) {
    			$seq_title = get_the_title();
    			$seq_id = get_the_id();
    			$uid = get_current_user_id();
    			
    			$row = array(
    			    'page_title'	=> $seq_title,
    			    'page_id'		=> $seq_id
    			);
    			add_row('pages_ok', $row, 'user_'.$uid);							 
    		}
    	}