Social Icon is a WordPress ability from The Plus Addons for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Social Icon

Write

Adds the The Plus "Social Icon" widget (tp-social-icon) to an Elementor container, displaying a list of social media profile icon links.

Requires the The Plus Addons for Elementor plugin (which registers under the 'tpae' ability category) on WordPress 6.9+, with Elementor active. Every ability requires the current user to have the 'edit_posts' capability (and 'edit_post' for the specific post being modified); abilities that create or edit content also verify Elementor and, where relevant, the target The Plus widget are available. A subset of abilities (theme templates, template conditions, dynamic tags, popups, and some custom-code abilities) only register when Elementor Pro is active, and many widget abilities load only in the free plugin when the Pro add-on is inactive.

What it does

The execute_callback tpae_mcp_add_theplus_social_icon_ability verifies Elementor is active and the tp-social-icon widget is registered, then requires post_id and parent_id and confirms the target post exists. It loads the post's Elementor element tree, builds settings from styles (sanitize_key) and social_icons_list (mapping each item's pt_plus_social_icons via sanitize_key, social_url via esc_url_raw wrapped in a url object, and generating a random _id per icon), merges in any raw settings, and constructs a new widget element with widgetType tp-social-icon. It inserts the widget into the given parent container at the given position and saves the updated Elementor data, returning an error if the parent container is not found.

See it in action

You ask your AI assistant

"Add a row of social icon links (Facebook, Twitter, Instagram) styled as style-3 to the footer container of my page."

Inputs

Name Type Required Description
post_id integer Yes Elementor page/post ID
parent_id string Yes Target Elementor container ID
position integer No Insert position. Use -1 to append.
styles string No Icon button visual style (style-1 through style-10)
social_icons_list array No Social media icon links; each item has pt_plus_social_icons (social platform: facebook, twitter, instagram, linkedin, youtube, pinterest, whatsapp, github, dribbble, behance) and social_url (profile URL)
settings object No Raw Elementor/The Plus control settings to merge into the widget at creation time. Use control keys from sprout/get-theplus-widget-schema.

Returns

Returns the new element_id, the widget_type (tp-social-icon), and the post_id the widget was added to.

Permission

Requires the current user to have the edit_posts capability, and if a post_id is supplied, also requires edit_post capability for that specific post.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.