add_filter(‘https_ssl_verify’, ‘__return_false’); add_filter(‘https_local_ssl_verify’, ‘__return_false’);
WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] => SSL certificate problem: self signed certificate ) ) [error_data] => Array ( ) )
>>> $c = AppUsers::find(1); => AppUsers {#825 id: 1, name: "John", email: "it@rftags.co.za", created_at: "2018-02-14 09:53:01", updated_at: "2018-02-14 09:53:01", }
function my_files_only( $wp_query ) { if ( ! $_POST["action"] == "attachment" ) { return; } if ( current_user_can( ‘administrator’ ) ) { return; } global $current_user; $wp_query->set( ‘author’, $current_user->id ); } add_filter(‘parse_query’, ‘my_files_only’ );
function overwrite_wordpress_timeout( $timeout ) { return 60; // seconds } add_filter( ‘http_request_timeout’, ‘overwrite_wordpress_timeout’ );