coresocial_online_count_complete

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

PHP
Definition
do_action( "coresocial_online_count_complete", $result, $item, $stored );
Arguments
Name
Type
Description
$result
array
Filtered provider result.
$item
array
Queued item, including its current URL.
$stored
bool
Whether the count was successfully written to the database.

Runs after processing an available provider’s refresh attempt. It includes provider errors, invalid results, and database failures. A provider status of ok alone does not establish storage success. Removed or disabled providers are skipped without this action.

Example

add_action( 'coresocial_online_count_complete', function ( $result, $item, $stored ) {
    if ( ! $stored ) {
        error_log( 'A coreSocial online-count refresh was not stored.' );
    }
}, 10, 3 );
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0