Skip to content

Instantly share code, notes, and snippets.

@knilkantha
knilkantha / Security Advisory: Stored XSS via Malicious PDF Upload (Fixed in v3.0.9)
Last active May 5, 2025 07:28
Security Advisory: Stored XSS via Malicious PDF Upload (Fixed in v3.0.9)
We couldn’t find that file to show.
@knilkantha
knilkantha / Method One - to hide deactivate option in current plugin
Created August 25, 2020 07:07
Hide deactivation option in specific WordPress plugin
//Add this code on plugin's main file. This will hide current plugin's deactivation option
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'disable_plugin_deactivation' );
function disable_plugin_deactivation ($actions) {
unset( $actions['deactivate'] );
return $actions;
}