max upload size

Posted Posted in Wordpress

php.ini ; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 64M ; Maximum size of POST data that PHP will accept. ; Its value may be 0 to disable the limit. It is ignored if POST data reading ; is disabled through enable_post_data_reading. ; http://php.net/post-max-size post_max_size = 64M

functions.php // wp_log_http_requests

Posted Posted in Wordpress

/* WP LOG HTTP REQUESTS */ function wp_log_http_requests( $response, $args, $url ) { // set your log file location here $logfile = plugin_dir_path( __FILE__ ) . ‘/http_requests.log’; // parse request and response body to a hash for human readable log output $log_response = $response; if ( isset( $args[‘body’] ) ) { parse_str( $args[‘body’], $args[‘body_parsed’] ); […]

functions.php // facetWP

Posted Posted in Wordpress

functions.php /** FacetWP index attachments */ function my_facetwp_indexer_query_args( $args ) { $args[‘post_status’] = array( ‘publish’, ‘inherit’ ); return $args; } add_filter( ‘facetwp_indexer_query_args’, ‘my_facetwp_indexer_query_args’ ); /** FacetWP */ facet Template <?php return array( ‘post_type’ => ‘any’, ‘post_status’ => array(‘publish’, ‘inherit’), ‘posts_per_page’ => 25, ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array(‘2016′,’2015′,’2014’, […]

functions.php // searchWP

Posted Posted in Wordpress

/* SEARCHWP DEBUG */ add_filter( ‘searchwp_debug’, ‘__return_true’ ); /* SEARCHWP DEBUG */ => searchWP System Configuration: wp_remote_post() does not work : use alternate indexer /* SEARCHWP add alternate indexer */ add_filter( ‘searchwp_alternate_indexer’, ‘__return_true’ ); /* SEARCHWP add alternate indexer */ /* SEARCHWP XPDF EXTENSION */ function mySearchWPXpdfPath() { return ‘/Library/Server/Web/Data/Sites/xpdf/pdftotext’; } add_filter( ‘searchwp_xpdf_path’, ‘mySearchWPXpdfPath’ ); /* SEARCHWP XPDF […]