coresocial_profiles

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
apply_filters( "coresocial_profiles", $profiles, $service );
Arguments
Name
Type
Description
$profiles
array
Raw profile arrays keyed by profile ID; each needs id, network, name, and url.
$service
Dev4Press\Plugin\coreSocial\Basic\Profiles
Profiles service.
Returns
array — raw profiles keyed by ID.

Runs on each profile-list lookup, including selection controls and rendering, without saving settings. Use supported profile network codes. Count and label fields are optional. Non-array returns preserve the stored list. Individual rendering overrides can use coresocial_profile.

Example

add_filter( 'coresocial_profiles', function ( $profiles ) {
    unset( $profiles[12] );
    return $profiles;
} );
Rate this reference
0
0
3

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0