Sokket 1.6.0 has 3 actions and 20 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Sokket fires an action
add_action( 'sokket_admin_page_after_content', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Sokket is about to use
add_filter( 'sokket_audit_max_rows', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires after the main page content (renders the shared sidebar). */ do_action( 'sokket_admin_page_after_content' ); -
/** * This filter is documented in includes/Audit/AuditLog.php */ apply_filters( 'sokket_audit_max_rows', 500 ); -
/** * Filters the capability a connected user needs before a bridged ability is * offered. */ apply_filters( 'sokket_ability_capability', $capability, $ability_name ); -
/** * Filters whether a bridged ability is marked as returning personal data. */ apply_filters( 'sokket_ability_is_sensitive', $sensitive, $ability_name ); -
/** * Fires after the sidebar content. */ do_action( 'sokket_after_sidebar_content' ); -
/** * Filters whether delete_post may permanently delete a post. */ apply_filters( 'sokket_allow_permanent_delete', false, $post->ID ); -
/** * Filters the HTML allowed inside block inner markup. */ apply_filters( 'sokket_allowed_block_html', $cache, $block_name ); -
/** * Filters the post meta keys the set_post_meta tool may write. */ apply_filters( 'sokket_allowed_post_meta', array( '_wp_page_template' ) ); -
/** * Filters the image MIME types the upload_media tool accepts. */ apply_filters( 'sokket_allowed_upload_mimes', array_keys( self::IMAGE_TYPES ) ); -
/** * Fires before the sidebar content. */ do_action( 'sokket_before_sidebar_content' ); -
/** * Filters the attribute names skipped when checking against a schema. */ apply_filters( 'sokket_block_support_attributes', self::EDITOR_ATTRIBUTES, $name ); -
/** * Filters how many bytes one user may upload through MCP per hour. */ apply_filters( 'sokket_max_upload_bytes_per_hour', 25 * MB_IN_BYTES ); -
/** * Filters the maximum size of a single upload_media call. */ apply_filters( 'sokket_max_upload_size', 8 * MB_IN_BYTES ); -
/** * Filters how many images one user may upload through MCP per hour. */ apply_filters( 'sokket_max_uploads_per_hour', 20 ); -
/** * Filters whether the current user may authorize an MCP connection. */ apply_filters( 'sokket_oauth_user_can_authorize', current_user_can( 'read' ) ); -
/** * Filters the post types the generic content tools refuse to read or write. */ apply_filters( 'sokket_private_post_types', self::PRIVATE_FLOOR ); -
/** * Filters the maximum number of MCP requests per minute per credential. */ apply_filters( 'sokket_rate_limit_per_minute', 120 ); -
/** * Filters the registered MCP tools. */ apply_filters( 'sokket_register_tools', $definitions ); -
/** * Filters the admin screens treated as plugin screens. */ apply_filters( 'sokket_screen_ids', self::$screen_ids ); -
/** * Filters the WordPress options the get_site_settings tool may read. */ apply_filters( 'sokket_settings_read_allowlist', $allowlist ); -
/** * Filters the WordPress options the update_site_settings tool may write. */ apply_filters( 'sokket_settings_write_allowlist', $allowlist ); -
/** * Filters the tool group labels shown in the token allowlist. */ apply_filters( 'sokket_tool_group_labels', $core );
Generated from Sokket's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: