coresocial_css_variables

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_css_variables", $vars );
coreSocial 4.0 — core/basic/Plugin.php:199
Arguments
Name
Type
Description
$vars
array
Map of CSS custom-property names to values, populated by enabled networks and registered sharing-method callbacks.
Returns
array — CSS variable overrides rendered by the plugin.

Runs in the late wp_head styling override, before the plugin outputs its generated variable declarations. Preserve existing entries unless intentionally replacing them.

Use full CSS custom-property names, including the leading –. This does not enqueue a new stylesheet or replace per-block/per-Explore scoped overrides.

Example

add_filter( 'coresocial_css_variables', function ( $vars ) {
    $vars['--coresocial-inline-rounded'] = '8px';
    return $vars;
}, 20 );
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