[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 194: Trying to access array offset on false
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 199: Trying to access array offset on false
BitArena 2024-12-29T12:53:02+01:00 https://bitarena.eu/feed/topic/132 2024-12-29T12:53:02+01:00 2024-12-29T12:53:02+01:00 https://bitarena.eu/viewtopic.php?p=275#p275 <![CDATA[Disable XML-RPC via WordPress code]]>
To disable XML-RPC methods that do not require authentication.
Please Login or Register to see this codeThis technique disables all XML-RPC functionality by passing an empty array via the filter hook. This can be further simplified by using the WordPress function, . For example:xmlrpc_methods__return_empty_array()
Please Login or Register to see this codeThat one line takes care of disabling all XML-RPC functionality. The only other sort of related thing is the header, which WordPress includes automatically. So if XML-RPC is disabled, it makes sense also to disable the header, because pingbacks require XML-RPC in order to work. This will do it:X-Pingback
Please Login or Register to see this code

Statistics: Posted by Kygo — 29 Dec 2024, 12:53


]]>